copyWith method
- @useResult
- TextStyle? headerTextStyle,
- FCalendarDayStyle? selectableCurrent,
- FCalendarDayStyle? selectableEnclosing,
- FCalendarDayStyle? unselectableCurrent,
- FCalendarDayStyle? unselectableEnclosing,
- 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,
);