DurationFormattedEnglish class

A class that formats a Duration into a human-readable string.

Constructors

DurationFormattedEnglish(int microseconds)

Properties

d int
The remaining days in the duration.
latefinal
h int
The remaining hours in the duration.
latefinal
hashCode int
The hash code for this object.
no setterinherited
m int
The remaining minutes in the duration.
latefinal
ms int
The remaining milliseconds in the duration.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s int
The remaining seconds in the duration.
latefinal
toD String
The formatted duration string with the day as the largest unit.
no setter
toH String
The formatted duration string with the hour as the largest unit.
no setter
toM String
The formatted duration string with the minute as the largest unit.
no setter
toMs String
The formatted duration string with the millisecond as the largest unit.
no setter
toS String
The formatted duration string with the second as the largest unit.
no setter
toUs String
The formatted duration string with the microsecond as the largest unit.
no setter
toW String
The formatted duration string with the week as the largest unit.
no setter
us int
The remaining microseconds in the duration.
latefinal
w int
The remaining weeks in the duration.
latefinal

Methods

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