DateRange class

Available extensions

Constructors

DateRange.new({required Date start, required Date end})
Creates a date range for the given start and end DateTime.

Properties

days List<Date>

Available on DateRange, provided by the DateRangeExtension extension

no setter
duration Duration
Returns a Duration of the time between start and end.
no setter
end Date
The end of the range of dates.
final
hashCode int
The hash code for this object.
no setteroverride
middle Date

Available on DateRange, provided by the DateRangeExtension extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Date
The start of the range of dates.
final

Methods

formatBy(DateFormat dateFormat) String

Available on DateRange, provided by the DateRangeExtension extension

isWithin(DateRange range) bool

Available on DateRange, provided by the DateRangeExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTimeRange() DateTimeRange<DateTime>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override