CountdownDurationFormatter class

@fileoverview Like LongDurationFormatter and DurationFormatter, but formatted for countdowns.

Inheritance

Constructors

CountdownDurationFormatter(int highestPrecisionShown)
Chain super constructor -- @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
override
formatSecondsStream(Stream<double> stream) Stream<String>
inherited
getFormatted() String
Runs formatter class
inherited
getInterpolatorChar() String
See concrete class
override
getUnitName(int precision) String
Optionally used helper code. Valid for DCE.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDuration(Duration duration) AbstractDurationFormatter
Set from dart Duration object.
inherited
setDurationMillis(double ms) AbstractDurationFormatter
Set in milliseconds
inherited
setDurationSeconds(double seconds) AbstractDurationFormatter
Set in seconds
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getDurationForPrecision(int precision, double durationMs) int
getPreviousPrecision(int precision) int