ZdsDateTimeRange class
Encapsulates a start and end DateTime that represent the range of dates.
Unlike DateTimeRange, start can be before end. This allows for validation in ZdsDateRangePickerTileForm and allows for more flexibility.
See also:
Constructors
- ZdsDateTimeRange({DateTime? start, DateTime? end})
-
Constructor for ZdsDateTimeRange.
const
- ZdsDateTimeRange.fromDateTimeRange(DateTimeRange dateTimeRange)
- Constructs a ZdsDateTimeRange from a DateTimeRange.
Properties
- end → DateTime?
-
The end of the range of dates.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isIncomplete → bool
-
Checks if either start or end is not set.
no setter
- isValid → bool
-
Checks validity of DateTimeRange.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → DateTime?
-
The start of the range of dates.
final
- toDateTimeRange → DateTimeRange?
-
Constructs a DateTimeRange from an instance of ZdsDateTimeRange only if isValid.
no setter
Methods
-
copyWith(
{DateTime? start, DateTime? end}) → ZdsDateTimeRange - Creates a new ZdsDateTimeRange from this one by updating individual properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited