DateIntervalType enum Null safety

The type of date interval. It can be years to seconds.

Constants

days → const DateIntervalType

Date interval is day.

For example, if min is DateTime(2000, 01, 01, 00) and max is DateTime(2000, 01, 25, 24) and interval is 5 and dateIntervalType is days then range slider will render labels for Jan 01, 2000, Jan 06, 2000, Jan 11, 2000, Jan 16, 2000, Jan 21, 2001 and Jan 26, 2001 respectively.

const DateIntervalType(2)
hours → const DateIntervalType

Date interval is hour.

For example, if min is DateTime(2000, 01, 01, 09) and max is DateTime(2000, 01, 01, 17) and interval is 4 and dateIntervalType is hours then range slider will render labels for Jan 01, 2000 09:00, Jan 01, 2000 13:00, and Jan 01, 2000 17:00 respectively.

const DateIntervalType(3)
minutes → const DateIntervalType

Date interval is minute.

For example, if min is DateTime(2000, 01, 01, 09) and max is DateTime(2000, 01, 01, 10) and interval is 15 and dateIntervalType is minutes then range slider will render labels for Jan 01, 2000 09:00, Jan 01, 2000 09:15, Jan 01, 2000 09:30, Jan 01, 2000 09:45 and Jan 01, 2000 10:00 respectively.

const DateIntervalType(4)
months → const DateIntervalType

Date interval is month.

For example, if min is DateTime(2000, 01, 01, 00) and max is DateTime(2000, 12, 31, 24) and interval is 3 and dateIntervalType is months then range slider will render labels for Jan 01, 2000, Apr 01, 2000, Jul 01, 2000, Oct 01, 2000 and Jan 01, 2001 respectively.

const DateIntervalType(1)
seconds → const DateIntervalType

Date interval is second.

For example, if min is DateTime(2000, 01, 01, 09, 00) and max is DateTime(2000, 01, 01, 09, 01) and interval is 20 and dateIntervalType is seconds then range slider will render labels for Jan 01, 2000 09:00:00, Jan 01, 2000 09:00:20, Jan 01, 2000 09:00:40, and Jan 01, 2000 09:01:00 respectively.

const DateIntervalType(5)
values → const List<DateIntervalType>

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

const List<DateIntervalType>
years → const DateIntervalType

Date interval is year.

For example, if min is DateTime(2000, 01, 01, 00) and max is DateTime(2005, 12, 31, 24) and interval is 1 and dateIntervalType is years then range slider will render labels for 2000, 2001, 2002, 2003, 2004, 2005 respectively.

const DateIntervalType(0)

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