DurationFormat enum

The Duration serialization format

  • microseconds Duration up to microseconds (the huge number!)
  • milliseconds Duration up to milliseconds (the big number!)
  • seconds Duration up to seconds (the reasonable number!)
  • minutes Duration up to minutes used for low resolution durations
  • hours Duration up to minutes used for very low resolution durations
  • days Duration up to days used for very very low resolution durations
Inheritance
Implemented types

Constructors

DurationFormat(dynamic jsonValue)
const

Values

microseconds → const DurationFormat
const DurationFormat("us")
milliseconds → const DurationFormat
const DurationFormat("ms")
seconds → const DurationFormat
const DurationFormat("s")
minutes → const DurationFormat
const DurationFormat("m")
hours → const DurationFormat
const DurationFormat("h")
days → const DurationFormat
const DurationFormat("d")

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
jsonValue → dynamic
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromValue(dynamic jsonValue) DurationFormat
override

Constants

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