MathUtils class

Constructors

MathUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
getter/setter pair

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)