DurationInterval enum

Inheritance
Available extensions

Values

lessThanASecond → const DurationInterval
const DurationInterval(0, unit: DurationUnit.second, singular: false)
aSecond → const DurationInterval
const DurationInterval(1, unit: DurationUnit.second, singular: true)
seconds → const DurationInterval
const DurationInterval(2, unit: DurationUnit.second, singular: false)
aMinute → const DurationInterval
const DurationInterval(3, unit: DurationUnit.minute, singular: true)
minutes → const DurationInterval
const DurationInterval(4, unit: DurationUnit.minute, singular: false)
anHour → const DurationInterval
const DurationInterval(5, unit: DurationUnit.hour, singular: true)
hours → const DurationInterval
const DurationInterval(6, unit: DurationUnit.hour, singular: false)
aDay → const DurationInterval
const DurationInterval(7, unit: DurationUnit.day, singular: true)
days → const DurationInterval
const DurationInterval(8, unit: DurationUnit.day, singular: false)
aWeek → const DurationInterval
const DurationInterval(9, unit: DurationUnit.week, singular: true)
weeks → const DurationInterval
const DurationInterval(10, unit: DurationUnit.week, singular: false)
aMonth → const DurationInterval
const DurationInterval(11, unit: DurationUnit.month, singular: true)
months → const DurationInterval
const DurationInterval(12, unit: DurationUnit.month, singular: false)
aYear → const DurationInterval
const DurationInterval(13, unit: DurationUnit.year, singular: true)
years → const DurationInterval
const DurationInterval(14, unit: DurationUnit.year, singular: false)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singular bool
final
unit DurationUnit
final
value int
final

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

Static Methods

findByUnit(int unitValue, DurationUnit unit) DurationInterval
Returns DurationInterval based on value and unit.

Constants

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