DateRangeEditorModel class
Models the datepicker state.
- Implemented types
Constructors
-
DateRangeEditorModel({DatepickerComparison? initialValue, Date? minDate, Date? maxDate, bool requireFullPeriods = false, bool basic = false, List<
ComparisonOption> supportedComparisonOptions = const []})
Properties
- basic ↔ bool
-
getter/setter pair
-
calendar
→ ObservableReference<
CalendarState> -
final
-
changes
→ Stream<
DateRangeChange> -
A sync, broadcast stream of changes caused by the user poking at the
datepicker.
no setter
-
comparison
→ ObservableReference<
DateRange> -
An observable handle on the comparison range.
final
- comparisonEnabled ↔ bool
-
Whether or not time comparison is enabled.
getter/setter pairoverride
- comparisonId → String
-
final
- comparisonOption ↔ ComparisonOption?
-
What time comparison setting is chosen.
getter/setter pairoverride
- comparisonSupported → bool
-
Whether the currently selected range supports comparison
no setteroverride
- comparisonTitle → String
-
The title of what the comparison date range would be.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hasNext
↔ ObservableReference<
bool> -
true
if there's a next item to advance to.getter/setter pairoverride-getter -
hasPrev
↔ ObservableReference<
bool> -
true
if there's a previous item to revert to.getter/setter pairoverride-getter - isCustomComparisonValid → bool
-
Whether custom date range in comparison is a valid option.
no setter
- maxDate ↔ Date
-
The latest date that can be chosen for comparison.
getter/setter pairoverride-getter
- minDate ↔ Date
-
The earliest date that can be chosen for comparison.
getter/setter pairoverride-getter
- primaryRange → DatepickerDateRange?
-
The current date range.
no setteroverride
-
range
→ ObservableReference<
DateRange?> -
final
- rangeId → String
-
final
- rangeTitle → String
-
The title of the selected date range.
no setter
- requireFullPeriods ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldShowCustomDateRangeColumn ↔ bool
-
getter/setter pair
- shouldShowPredefinedList ↔ bool
-
getter/setter pair
-
supportedComparisonOptions
← List<
ComparisonOption> ? -
List of ComparisonOptions which client want to support.
no getter
-
validComparisonOptions
→ List<
ComparisonOption> -
List of ComparisonOptions which fall within minDate/maxDate.
no setteroverride
- value ↔ DatepickerComparison?
-
The currently-selected datepicker value.
getter/setter pair
Methods
-
dispose(
) → void - Gets rid of all the streams and listeners and all that.
-
next(
) → DatepickerDateRange? -
Tries to advance to the next item, and returns it if possible.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prev(
) → DatepickerDateRange? -
Tries to revert to the previous item, and returns it if possible.
override
-
restore(
ModelState? state) → void -
Sets the model's state to a value from an earlier call to
save
. -
save(
) → ModelState - Takes a snapshot of the model's current state.
-
selectRange(
DatepickerDateRange? range) → void - Selects the given preset date range.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited