DateTimeGranularity enum Null safety

Constants

day → const DateTimeGranularity

The DateTimeEntity is precise to a specific day - 4.

const DateTimeGranularity(4)
hour → const DateTimeGranularity

The DateTimeEntity is precise to a specific hour - 5.

const DateTimeGranularity(5)
minute → const DateTimeGranularity

The DateTimeEntity is precise to a specific minute - 6.

const DateTimeGranularity(6)
month → const DateTimeGranularity

The DateTimeEntity is precise to a specific month - 2.

const DateTimeGranularity(2)
second → const DateTimeGranularity

The DateTimeEntity is precise to a specific second - 7.

const DateTimeGranularity(7)
unknown → const DateTimeGranularity

The granularity of the DateTimeEntity is unknown - 0.

const DateTimeGranularity(0)
values → const List<DateTimeGranularity>

A constant List of the values in this enum, in order of their declaration.

const List<DateTimeGranularity>
week → const DateTimeGranularity

The DateTimeEntity is precise to a specific week - 3.

const DateTimeGranularity(3)
year → const DateTimeGranularity

The DateTimeEntity is precise to a specific year - 1.

const DateTimeGranularity(1)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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