TimeUnit enum

Recognized time units for parsing "time ago" strings.

Inheritance
Available extensions

Values

milliseconds → const TimeUnit
seconds → const TimeUnit
minutes → const TimeUnit
hours → const TimeUnit
days → const TimeUnit
weeks → const TimeUnit
months → const TimeUnit
years → const TimeUnit
justnow → const TimeUnit
unknown → const TimeUnit

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toShortString() String

Available on TimeUnit, provided by the TimeUnitExtension extension

Returns the lowercase string name of the unit (e.g., 'minutes').
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<TimeUnit>
A constant List of the values in this enum, in order of their declaration.