NumberInText class final
The first number in a text ("1,204", "-3.5", "$12.50" → 12.50) and how it is written: what is around it, its decimals and whether its thousands are grouped. A text's number counts (AnimationTrack.lerpValue): each value between is written the same way (format).
- Annotations
-
- @immutable
Constructors
Properties
Methods
-
format(
double v) → String -
The text with
vin place of the number, written the same way.vis first rounded to six places past decimals, so a value a clock computes a hair under a half (0.3 / 0.4 of a run) rounds as the half. -
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
-
parse(
String text) → NumberInText? -
The number in
text, or null when it has none.