XBCalendarVM class

Inheritance
Implementers

Constructors

XBCalendarVM({required BuildContext context})

Properties

context BuildContext
finalinherited
controller ScrollController
getter/setter pair
createDateTime DateTime
getter/setter pair
createMonth int
no setter
createYear int
no setter
disposed bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
initOffset double
no setter
isSingle bool
getter/setter pair
markDates List<DateTime>?
有标记的日期
getter/setter pair
maxDateTime DateTime
getter/setter pair
minDateTime DateTime
getter/setter pair
monthCount int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDate String
no setter
scrollMonth String
no setter
scrollMonthInt int
getter/setter pair
scrollYear String
no setter
scrollYearInt int
getter/setter pair
selectedDates List<DateTime>
getter/setter pair
state ↔ XBWidgetState<XBVM>
getter/setter pairinherited
weekDays List<String>
no setter
weekDaysWidgets List<Widget>
getter/setter pair
widget XBCalendar
no setterinherited
widgetSize Size
getter/setter pairinherited
years Map<int, XBCalendarYear>
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
buildMonthIndexCache() → void
calculateYearOffsets() → void
didChangeDependencies() → void
inherited
didCreated() → void
已经完成创建
inherited
didUpdateWidget(covariant XBCalendar oldWidget) → void
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).
goCurrentDay() → dynamic
listen<E>(dynamic onData(E)) → dynamic
inherited
monthForIndex(int index) XBCalendarMonth
nextMonth() → dynamic
nextYear() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → dynamic
通知刷新
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
offsetForDateTime(DateTime dateTime) double
offsetListener() → dynamic
onDone() → dynamic
onSelectDate(DateTime dateTime) → dynamic
previousMonth() → dynamic
previousYear() → dynamic
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
updateYears() → dynamic
widgetDidBuilt() → void
页面已经build完成
inherited
widgetSizeDidChanged() → void
yearModelForYear(int year) XBCalendarYear?

Operators

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