MathUtils class Null safety

Constructors

MathUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

defaultPrecision int
read / write

Static Methods

getDecimalPart(double decimal, {int? precision}) double
9.35, precision: 2 => 0.35 10.225, precision: 2 => 0.22
loopIndex(int index, int length) int
Loop an index to an range of a specif length (index: 3 ,length: 5) => 3 (index: 5 ,length: 5) => 0 (index: 7 ,length: 5) => 2 (index should be negative)