Number class
A utility class for converting numeric values to human-readable formats.
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
-
toReadableBytes(
num? value, {ByteUnits unit = ByteUnits.auto}) → Readable - Converts a numeric value to a human-readable byte format.
-
toReadableNumber(
num? value, {NumberUnits unit = NumberUnits.auto}) → Readable - Converts a numeric value to a human-readable number format.
-
toRealBytes(
num? value, ByteUnits unit) → double -
toRealNumber(
num? value, NumberUnits unit) → double