copyWith method
copy对象
currentDay
- 选择的日期
currentMonth
- 当前月份
firstWeek
- 第一列显示的星期 1,7
enableContinuous
- 是否支持连选
firstSelectDay
- 连选第一个日期
secondSelectDay
- 连选第二个日期
enableMultiple
- 是否开启多选,开启多选后连选失效
enableDays
- 限制可选的日期,默认不限制
multipleDays
- 多选的默认日期
marks
- 标记
minDay
- 可选的最小日期
maxDay
- 可选的最大日期
Implementation
MonthOption<T> 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,
}) {
return MonthOption<T>(
currentDay: currentDay ?? this.currentDay,
currentMonth: currentMonth ?? this.currentMonth,
firstSelectDay: firstSelectDay ?? this.firstSelectDay,
firstWeek: firstWeek ?? this.firstWeek,
secondSelectDay: secondSelectDay ?? this.secondSelectDay,
enableContinuous: enableContinuous ?? this.enableContinuous,
enableMultiple: enableMultiple ?? this.enableMultiple,
multipleDays: multipleDays ?? this._multipleDays,
enableDays: enableDays ?? this._enableDays,
marks: marks ?? this.marks,
minDay: minDay ?? this.minDay,
maxDay: maxDay ?? this.maxDay,
);
}