DayTimeRange class
Constructors
- DayTimeRange(int year, int month, int day, {bool isUtc = false})
-
const
- DayTimeRange.fromDateTime(DateTime dateTime)
-
Will preserve the timezone of
dateTime
factory
Properties
- day → int
-
final
- duration → Duration
-
no setterinherited
- from → DateTime
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUtc → bool
-
final
- month → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → DateTime
-
no setteroverride
- year → int
-
final
Methods
-
contains(
DateTime dateTime) → bool -
Returns true if
dateTime
is between from and to (inclusive)inherited -
containsRange(
TimeRange timeRange) → bool -
Returns true if
this
containstimeRange
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUtc(
) → DayTimeRange -
Unless you're using CustomTimeRange, this will always keep the
properties like year, month the same.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited