INNER CODE UNIT · Dart
min
roipeker/graphx · lib/src/math.dart:95
static const min = math.min;
/// Computes and returns `x` to the power of `exponent`.
static const pow = math.pow;
/// Factory constructor to ensure exception. Throws an exception if an attempt
/// is made to instantiate this class.
factory Math() {
throw UnsupportedError(
"Cannot instantiate Math. Use only static methods.",
);
}
// * OLD code
// static final max = m.max as T Function<T extends num>(T, T);
// Private constructor to prevent instantiation
// Math._();