PersianDateRange class
An inclusive range of days from start to end.
Days are compared without the time of day, like PersianDate.compareTo.
Constructors
- PersianDateRange(PersianDate start, PersianDate end)
-
Creates the range from
starttoend, both included.
Properties
-
days
→ Iterable<
PersianDate> -
Every day of the range in order, date-only.
no setter
- end → PersianDate
-
Last day of the range, included.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- length → int
-
Number of days in the range, at least 1.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → PersianDate
-
First day of the range.
final
Methods
-
contains(
PersianDate date) → bool -
Whether
dateis on or after start and on or before end. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
PersianDateRange other) → bool -
Whether this range and
othershare at least one day. -
toString(
) → String -
Returns
start - end, for example1403/01/01 - 1403/01/10.override
Operators
-
operator ==(
Object other) → bool -
Equal when start and end are the same days.
override