RCalendarController<T> class
you can use RCalendarMarker.of(context).notifier get it.
- Inheritance
-
- Object
- ChangeNotifier
- RCalendarController
Constructors
-
RCalendarController.multiple({RCalendarMode? mode, required List<
DateTime> selectedDates, bool? isDispersion, T? initialData}) - RCalendarController.single({RCalendarMode? mode, DateTime? selectedDate, bool? isAutoSelect, T? initialData})
Properties
- data ↔ T?
-
getter/setter pair
- displayedMonthDate ↔ DateTime?
-
getter/setter pair
- displayedPage → int
-
no setter
- firstDate ↔ DateTime
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isAutoSelect ↔ bool
-
getter/setter pair
- isDispersion ↔ bool
-
getter/setter pair
- isMonthMode → bool
-
no setter
- isMultiple ↔ bool
-
getter/setter pair
- lastDate ↔ DateTime?
-
getter/setter pair
- maxMonthPage → int
-
no setter
- maxWeekPage → int
-
no setter
- mode ↔ RCalendarMode
-
getter/setter pair
- monthController ↔ PageController?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDate ↔ DateTime?
-
getter/setter pair
-
selectedDates
↔ List<
DateTime?> -
getter/setter pair
- selectedPage → int
-
no setter
- weekController ↔ PageController?
-
getter/setter pair
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).
override
-
initial(
BuildContext context, DateTime firstDate, DateTime? endDate) → void -
jumpTo(
DateTime? dateTime) → void -
nextPage(
{Duration? duration, Curve? curve}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
previousPage(
{Duration? duration, Curve? curve}) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDisplayedDate(
int page, RCalendarMode mode) → void -
updateSelected(
DateTime selectedDate) → void - when you select the dateTime ,will use this method
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited