AbstractDurationFormatter class abstract
@fileoverview Duration formatter abstract class.
- Implementers
Constructors
- AbstractDurationFormatter(int _highestPrecisionShown)
- @param highestPrecisionShown -- Value shown most to right
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
-
formatCurrentPrecision(
StringJoiner sj, int lastPrecision, int currentPrecision, double durationMs) → bool - Return value indicates whether to stop the loop
-
formatSecondsStream(
Stream< double> stream) → Stream<String> -
getFormatted(
) → String - Runs formatter class
-
getInterpolatorChar(
) → String - See concrete class
-
getUnitName(
int precision) → String - Optionally used helper code. Valid for DCE.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDuration(
Duration duration) → AbstractDurationFormatter - Set from dart Duration object.
-
setDurationMillis(
double ms) → AbstractDurationFormatter - Set in milliseconds
-
setDurationSeconds(
double seconds) → AbstractDurationFormatter - Set in seconds
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
precisions
→ List<
int> -
final