MonthlyCalenderTableProvider class
A ChangeNotifier that manages calendar state, including selected month, selected dates, and range selection.
Used to control and update a custom calendar widget.
- Inheritance
-
- Object
- ChangeNotifier
- MonthlyCalenderTableProvider
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isRangeSelection ↔ bool
-
Whether range selection is enabled.
getter/setter pair
- rangeEnd → int?
-
End index of the user-selected range (1-based).
no setter
- rangeStart → int?
-
Start index of the user-selected range (1-based).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedDaysList
↔ List<
MarkedDaysModel> -
A list of dates marked with custom decoration and optional child widgets.
getter/setter pair
- selectedMonth → DateTime
-
The selected month displayed in the calendar.
no setter
- startOffset → int
-
Number of blank leading cells before the first day of the month.
no setter
- totalDays → int
-
Total number of days in the currently selected month.
no setter
- userPicked → int?
-
The currently selected day for single-date mode (1-based).
no setter
-
weekNameList
→ List<
String> -
A fixed list of week day labels starting from Saturday.
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
initializeMonth(
DateTime selectedMonth, List< MarkedDaysModel> ? customList, bool isRange, {void onUserPicked(List<DateTime> )?}) → void -
Initializes the calendar with a specific
selectedMonth
, optional marked dayscustomList
, and a selection mode flagisRange
. Also registers an optionalonUserPicked
callback. -
isInRange(
int index) → bool -
Returns true if the given day
index
is within the user-selected range. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toggleSelectionMode(
bool selectionMode) → void - Switches the calendar between range and single selection mode.
-
toggleUserPicked(
int index) → void - Toggles the selection state when a user taps a calendar day cell.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited