OdometerNumber class Null safety

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

digits Map<int, double>
final
hashCode int
The hash code for this object.
read-onlyinherited
number int
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.