copyWith method

  1. @useResult
FCalendarDayPickerStyle copyWith({
  1. TextStyle? headerTextStyle,
  2. FCalendarDayStyle? selectableCurrent,
  3. FCalendarDayStyle? selectableEnclosing,
  4. FCalendarDayStyle? unselectableCurrent,
  5. FCalendarDayStyle? unselectableEnclosing,
  6. int? startDayOfWeek,
})

Returns a copy of this FCalendarDayPickerStyle but with the given fields replaced with the new values.

Implementation

@useResult
FCalendarDayPickerStyle copyWith({
  TextStyle? headerTextStyle,
  FCalendarDayStyle? selectableCurrent,
  FCalendarDayStyle? selectableEnclosing,
  FCalendarDayStyle? unselectableCurrent,
  FCalendarDayStyle? unselectableEnclosing,
  int? startDayOfWeek,
}) =>
    FCalendarDayPickerStyle(
      headerTextStyle: headerTextStyle ?? this.headerTextStyle,
      selectableStyles: (
        current: selectableCurrent ?? selectableStyles.current,
        enclosing: selectableEnclosing ?? selectableStyles.enclosing,
      ),
      unselectableStyles: (
        current: unselectableCurrent ?? unselectableStyles.current,
        enclosing: unselectableEnclosing ?? unselectableStyles.enclosing,
      ),
      startDayOfWeek: startDayOfWeek ?? this.startDayOfWeek,
    );