CalendarProvider class

引入provider的状态管理,保存一些临时信息

目前的情况:只需要获取状态,不需要监听rebuild

Inheritance

Constructors

CalendarProvider()

Properties

calendarConfiguration CalendarConfiguration
read / write
expandStatus ValueNotifier<bool>
read / write
generation ValueNotifier<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
lastClickDateModel DateModel
read / write
lastClickItemState ItemContainerState
read / write
monthPageIndex int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectDateModel DateModel
read / write
selectedDateList HashSet<DateModel>
read / write
totalHeight double
read / write
weekPageIndex int
read-only

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
changeTotalHeight(double value) → dynamic
clearData() → void
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 and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
initData({Set<DateModel> selectedDateList, DateModel selectDateModel, CalendarConfiguration calendarConfiguration, EdgeInsetsGeometry padding, EdgeInsetsGeometry margin, double itemSize, double verticalSpacing, DayWidgetBuilder dayWidgetBuilder, WeekBarItemWidgetBuilder weekBarItemWidgetBuilder}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
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
weekAndMonthViewChange(int mode) → void

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited