NumberUtils class abstract
This class contains utility functions related to number manipulation, such as rounding/wrapping values
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 Methods
-
roundToPlaces(
double val, int places) → double -
Rounds a double to have
placesplaces -
wrapDouble(
double val, double min, double max) → double -
Wraps a double
valbetweenminandmax. Ifmin= 1,max= 5 andval= 7, this will return 2. -
wrapInt(
int val, int min, int max) → int -
Wraps an integer
valbetweenminandmax. Ifmin= 1,max= 5 andval= 7, this will return 2.