MathUtils class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
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)