INNER CODE UNIT · Dart

max

roipeker/graphx · lib/src/math.dart:92

  static const max = math.max;

  /// Evaluates `a` and `b` and returns the smallest value.
  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);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…