MonthOption<T> class

月视图控制器参数

Create by JsonYe597232387@qq.com on 2019/12

Constructors

MonthOption({DateDay? currentDay, DateMonth? currentMonth, int firstWeek = 7, DateDay? firstSelectDay, DateDay? secondSelectDay, bool enableContinuous = false, Map<DateDay, T> marks = const {}, List<DateDay>? multipleDays, List<DateDay>? enableDays, bool enableMultiple = false, DateDay? minDay, DateDay? maxDay})
初始化
currentDay - 选择的日期
currentMonth - 当前月份
firstWeek - 第一列显示的星期 1,7
enableContinuous - 是否支持连选
firstSelectDay - 连选第一个日期
secondSelectDay - 连选第二个日期
enableMultiple - 是否开启多选,开启多选后连选失效
enableDays - 限制可选的日期,默认不限制
multipleDays - 多选的默认日期
marks - 标记
minDay - 可选的最小日期
maxDay - 可选的最大日期

Properties

currentDay DateDay?
no setter
currentMonth DateMonth?
no setter
enableContinuous bool
no setter
enableMultiple bool
no setter
firstSelectDay DateDay?
no setter
firstWeek int
no setter
hashCode int
The hash code for this object.
no setterinherited
marks Map<DateDay, T>
no setter
maxDay DateDay?
no setter
minDay DateDay?
no setter
multipleDays List<DateDay>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondSelectDay DateDay?
no setter

Methods

add(DateDay day) → void
addMark(DateDay day, T data) → void
copyWith({DateDay? currentDay, DateMonth? currentMonth, int? firstWeek, DateDay? firstSelectDay, DateDay? secondSelectDay, bool? enableContinuous, bool? enableMultiple, Map<DateDay, T>? marks, List<DateDay>? multipleDays, List<DateDay>? enableDays, DateDay? minDay, DateDay? maxDay}) MonthOption<T>
copy对象
currentDay - 选择的日期
currentMonth - 当前月份
firstWeek - 第一列显示的星期 1,7
enableContinuous - 是否支持连选
firstSelectDay - 连选第一个日期
secondSelectDay - 连选第二个日期
enableMultiple - 是否开启多选,开启多选后连选失效
enableDays - 限制可选的日期,默认不限制
multipleDays - 多选的默认日期
marks - 标记
minDay - 可选的最小日期
maxDay - 可选的最大日期
enableDay(DateDay day, DateMonth month) bool
当前日期是否可用
inContinuousDay(DateDay day) bool
在连续中
inMultipleDay(DateDay day) bool
在多选中
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(DateDay day) bool
setCurrentDay(DateDay? value) → void
setCurrentMonth(DateMonth? value) → void
setEnableContinuous(bool value) → void
setEnableMultiple(bool value) → void
setFirstSelectDay(DateDay? value) → void
setFirstWeek(int value) → void
setMarks(Map<DateDay, T> value) → void
setMultipleDays(List<DateDay> days) → void
setSecondSelectDay(DateDay? value) → void
toString() String
A string representation of this object.
inherited

Operators

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