Calendar class
日历相关计算工具。
获取日历中的每一个日碎片
Calendar().getPage().map((e) => Center(child: e)).toList();
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Constructors
- Calendar()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPage(
{List< DayClipModel> data = const [], DayClipDelegate? dayClipDelegate, WeekDayClipDelegate? weekDayClipDelegate, int? year, int? month}) → List<CalendarClip> - 计算显示区域。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited