DateIntervalType enum
The type of date interval. It can be years to seconds.
Values
- years → const DateIntervalType
-
Date interval is year.
For example, if
min
is DateTime(2000, 01, 01, 00) andmax
is DateTime(2005, 12, 31, 24) andinterval
is 1 anddateIntervalType
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) andmax
is DateTime(2000, 12, 31, 24) andinterval
is 3 anddateIntervalType
is months then range slider will render labels forJan 01, 2000
,Apr 01, 2000
,Jul 01, 2000
,Oct 01, 2000
andJan 01, 2001
respectively. - days → const DateIntervalType
-
Date interval is day.
For example, if
min
is DateTime(2000, 01, 01, 00) andmax
is DateTime(2000, 01, 25, 24) andinterval
is 5 anddateIntervalType
is days then range slider will render labels forJan 01, 2000
,Jan 06, 2000
,Jan 11, 2000
,Jan 16, 2000
,Jan 21, 2001
andJan 26, 2001
respectively. - hours → const DateIntervalType
-
Date interval is hour.
For example, if
min
is DateTime(2000, 01, 01, 09) andmax
is DateTime(2000, 01, 01, 17) andinterval
is 4 anddateIntervalType
is hours then range slider will render labels forJan 01, 2000 09:00
,Jan 01, 2000 13:00
, andJan 01, 2000 17:00
respectively. - minutes → const DateIntervalType
-
Date interval is minute.
For example, if
min
is DateTime(2000, 01, 01, 09) andmax
is DateTime(2000, 01, 01, 10) andinterval
is 15 anddateIntervalType
is minutes then range slider will render labels forJan 01, 2000 09:00
,Jan 01, 2000 09:15
,Jan 01, 2000 09:30
,Jan 01, 2000 09:45
andJan 01, 2000 10:00
respectively. - seconds → const DateIntervalType
-
Date interval is second.
For example, if
min
is DateTime(2000, 01, 01, 09, 00) andmax
is DateTime(2000, 01, 01, 09, 01) andinterval
is 20 anddateIntervalType
is seconds then range slider will render labels forJan 01, 2000 09:00:00
,Jan 01, 2000 09:00:20
,Jan 01, 2000 09:00:40
, andJan 01, 2000 09:01:00
respectively.
Properties
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.