NumberUtils class

Utility class for number-related operations.

This class cannot be instantiated.

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

random Random
A shared random number generator instance.
final

Static Methods

formatSize(int sizeInBytes) String
randomInt(List<int> values) int
Returns a random integer from the given list of values.
toStringAsFixedOrInteger(double value, {int decimal = 1}) String