WHUCalendarCal class
Constructors
- WHUCalendarCal({String? curDateStr})
Properties
- curDateStr ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calendarMapWith(
DateTime date) → Map - 根据传入data生成日历数据
-
currentDateStr(
) → String? - 获取当前的时间,默认格式为'yyyy-MM-dd'
-
getCommonHoliday(
DateTime calendarDay) → String? - 假期
-
getFirstDayOfMonth(
DateTime date) → DateTime - 获得当前月的第一天
-
getLastDayOfMonth(
DateTime date) → DateTime - 获得当前月的最后一天
-
getLastMonth(
DateTime date) → DateTime - 获得下个月的DateTime
-
getNextCalendarMap(
String dateStr) → Map - 生成下个月数据
-
getPreCalendarMap(
String dateStr) → Map - 生成上个月数据
-
getPreMonth(
DateTime date) → DateTime - 获得上个月的DateTime
-
loadDataWith(
String dateStr) → Map? - 根据传入日期,初始化日历的上月、当月、下月数据
-
nextMonthCalendar(
String dateStr, void completionBlk(Map?)) → void - 切换到下个月
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preMonthCalendar(
String dateStr, void completionBlk(Map?)) → void - 切换到上个月
-
titleOfNextMonth(
String dateStr) → String - 下个月的名字
-
titleOfPreMonth(
String dateStr) → String - 上个月的名字
-
toString(
) → String -
A string representation of this object.
inherited
-
turnCalendarMapWithCallBack(
String dateStr, void completeBlk(Map? dic)) → void - 根据转入的日期,切换上月、当月、下月数据;
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDaysInMonth(
int year, int month) → int - 获取这个月的天数