MonthOption<T> constructor

MonthOption<T>({
  1. DateDay? currentDay,
  2. DateMonth? currentMonth,
  3. int firstWeek = 7,
  4. DateDay? firstSelectDay,
  5. DateDay? secondSelectDay,
  6. bool enableContinuous = false,
  7. Map<DateDay, T> marks = const {},
  8. List<DateDay>? multipleDays,
  9. List<DateDay>? enableDays,
  10. bool enableMultiple = false,
  11. DateDay? minDay,
  12. DateDay? maxDay,
})

初始化
currentDay - 选择的日期
currentMonth - 当前月份
firstWeek - 第一列显示的星期 1,7
enableContinuous - 是否支持连选
firstSelectDay - 连选第一个日期
secondSelectDay - 连选第二个日期
enableMultiple - 是否开启多选,开启多选后连选失效
enableDays - 限制可选的日期,默认不限制
multipleDays - 多选的默认日期
marks - 标记
minDay - 可选的最小日期
maxDay - 可选的最大日期

Implementation

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,
}) {
  this._currentDay = currentDay;
  this._currentMonth = currentMonth ??
      (this.currentDay == null
          ? DateMonth.now()
          : DateMonth(this.currentDay!.year, this.currentDay!.month));
  this._firstWeek = firstWeek;
  this._enableContinuous = enableContinuous;
  this._enableMultiple = enableMultiple;
  this._firstSelectDay = firstSelectDay;
  this._secondSelectDay = secondSelectDay;
  this._multipleDays = multipleDays ?? [];
  this._enableDays = enableDays;
  this._marks = marks;
  this._minDay = minDay;
  this._maxDay = maxDay;
}