TimeRange class abstract
- Implementers
Constructors
- TimeRange()
-
const
- TimeRange.nextMonth()
-
In the local timezone
factory
- TimeRange.nextYear()
-
In the local timezone
factory
- TimeRange.prevMonth()
-
In the local timezone
factory
- TimeRange.prevYear()
-
In the local timezone
factory
- TimeRange.thisMonth()
-
In the local timezone
factory
- TimeRange.thisYear()
-
In the local timezone
factory
- TimeRange.today()
-
In the local timezone
factory
- TimeRange.tomorrow()
-
In the local timezone
factory
- TimeRange.yesterday()
-
In the local timezone
factory
Properties
Methods
-
contains(
DateTime dateTime) → bool -
Returns true if
dateTime
is between from and to (inclusive) -
containsRange(
TimeRange timeRange) → bool -
Returns true if
this
containstimeRange
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toUtc(
) → TimeRange -
Unless you're using CustomTimeRange, this will always keep the
properties like
year
,month
the same.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override