RangePickerController class
A controller that handles the logic of the date range picker.
Constructors
Properties
- dateRange → DateRange?
-
no setter
-
disabledDates
↔ List<
DateTime> -
getter/setter pair
- endDate ↔ DateTime?
-
The end date of the selected range.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDate ↔ DateTime?
-
The maximum date that can be selected. (inclusive)
getter/setter pair
- maximumDateRangeLength ↔ int?
-
getter/setter pair
- minDate ↔ DateTime?
-
The minimum date that can be selected. (inclusive)
getter/setter pair
- minimumDateRangeLength ↔ int?
-
getter/setter pair
-
onDateRangeChanged
→ ValueChanged<
DateRange?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate ↔ DateTime?
-
The start date of the selected range.
getter/setter pair
Methods
-
areSameDay(
DateTime one, DateTime two) → bool -
dateInSelectedRange(
DateTime date) → bool -
Returns whether the
dateis in the selected range or not. -
dateIsEnd(
DateTime date) → bool -
Returns whether the
dateis the end of the selected range or not. -
dateIsSelectable(
DateTime date) → bool -
Returns whether the
dateis selectable or not. (i.e. if it is between the minDate and the maxDate) -
dateIsStart(
DateTime date) → bool -
Returns whether the
dateis the start of the selected range or not. -
dateIsStartOrEnd(
DateTime date) → bool -
Returns whether the
dateis the start or the end of the selected range or not. This is useful to display the correct border radius on the day tile. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDateChanged(
DateTime date) → void -
Called when the user selects a date in the calendar.
If the startDate is null, it will be set to the
dateparameter. If the startDate is not null and the endDate is null, it will be set to thedateparameter except if thedateis before the startDate. In this case, the startDate will be set to thedateparameter and the endDate will be set to null. If the startDate is not null and the endDate is not null, the startDate will be set to thedateparameter and the endDate will be set to null. -
onDateRangeChangedExternally(
DateRange? newRange) → void -
retrieveDatesForMonth(
DateTime month) → List< DayModel> -
retrieveDeltaForMonth(
DateTime month) → int - Returns the number of days to skip at the beginning of the month.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited