DateIntervalType enum

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

Inheritance

Constructors

DateIntervalType()
const

Values

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.

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.

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.

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.

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.

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.

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

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

Constants

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