MathUtils constructor

MathUtils()

Factory constructor to ensure exception. Throws an exception if an attempt is made to instantiate this class.

Implementation

factory MathUtils() {
  throw UnsupportedError(
    "Cannot instantiate MathUtils. Use only static methods.",
  );
}