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

duration Duration
no setter
from DateTime
no setter
hashCode int
The hash code for this object.
no setteroverride
isUtc bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to DateTime
no setter

Methods

contains(DateTime dateTime) bool
Returns true if dateTime is between from and to (inclusive)
containsRange(TimeRange timeRange) bool
Returns true if this contains timeRange
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