OdometerNumber class
The odometer number that is used in widgets AnimatedOdometer and OdometerTransition.
Constructors
- OdometerNumber(int number)
- Creates the OdometerNumber that uses the given number.
-
OdometerNumber.fromDigits(Map<
int, double> digits) - Creates the OdometerNumber that uses the given digits.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
digit(
double value) → int - Returns truncated value represents the current odometer digit.
-
generateDigits(
int number) → Map< int, double> -
Returns digits generated from the given
number
. -
lerp(
OdometerNumber start, OdometerNumber end, double t) → OdometerNumber - Linearly interpolates between two numbers.
-
progress(
double value) → double -
Returns the animation progress creates from the
value
.