PageableRange<T extends TimeRange> mixin
- Superclass constraints
- Mixin applications
Properties
- asCustom → CustomTimeRange
-
Alias for toCustom
no setterinherited
- duration → Duration
-
no setterinherited
- from → DateTime
-
Start of the range (inclusive)
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUtc → bool
-
no setterinherited
- last → T
-
Returns a new instance, preserves the timezone
no setter
- next → T
-
Returns a new instance, preserves the timezone
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → DateTime
-
End of the range (inclusive)
no setterinherited
- unit → DurationUnit?
-
no setterinherited
Methods
-
contains(
DateTime dateTime) → bool -
Returns true if
dateTime
is between from (inclusive) and to (inclusive)inherited -
containsRange(
TimeRange timeRange) → bool -
Returns true if
this
containstimeRange
inherited -
encode(
) → String -
inherited
-
encodeShort(
) → String -
inherited
-
format(
{MomentLocalization? localization, DateTime? anchor, bool useRelative = true}) → String -
Converts TimeRange into readable format.
inherited
-
intersect(
TimeRange other) → TimeRange? -
When the two ranges are overlapping, returns the intersection of the
two ranges.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCustom(
) → CustomTimeRange -
Converts
this
to CustomTimeRangeinherited -
toString(
) → String -
You can reconstruct
this
by passing the return value to TimeRange.parse.inherited -
toUtc(
) → TimeRange -
Unless you're using CustomTimeRange, this will always keep the
properties like
year
,month
the same.inherited
Operators
-
operator &(
TimeRange other) → TimeRange? -
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited