DateRange class
Промежуток дат.
Constructors
- DateRange(DateTime start, DateTime end)
- DateRange.day(DateTime value)
- Создает промежуток в 1 день.
- DateRange.month(DateTime value)
- Создает промежуток в 1 месяц.
- DateRange.today()
- Создает промежуток в 1 день - сегодня.
- DateRange.week(DateTime value, {int? firstWeekday})
- Создает промежуток в 1 неделю. Creates 1 week range.
- DateRange.year(DateTime value)
- Создает промежуток в 1 год.
Properties
- end → DateTime
-
Дата окончания промежутка (исключая).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → DateTime
-
Дата начала промежутка (включая).
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
contains(
DateTime value) → bool - Проверяет, содержится ли переданная дата в промежутке.
-
daysInRange(
DateRange range) → Iterable< DateTime> - Возвращает DateTime для каждого для в заданном промежутке.
-
includes(
DateRange range) → bool -
Returns
true
if the wholerange
is in current range. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited