INNER CODE UNIT · Dart

pow

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

  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._();

  /// Computes and returns an absolute value for the number specified by
  /// [value].

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…