copyWith method
- @useResult
- TextStyle? headerTextStyle,
- FCalendarEntryStyle current(
- FCalendarEntryStyle style
- FCalendarEntryStyle enclosing(
- FCalendarEntryStyle style
- int? startDayOfWeek,
- double? tileSize,
Returns a copy of this FCalendarDayPickerStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FCalendarDayPickerStyle.headerTextStyle - The text style for the day of th week headers.
- FCalendarDayPickerStyle.current - The styles of dates in the current month.
- FCalendarDayPickerStyle.enclosing - The styles of dates in the enclosing months.
- FCalendarDayPickerStyle.startDayOfWeek - The starting day of the week.
- FCalendarDayPickerStyle.tileSize - The tile's size.
Implementation
@useResult
FCalendarDayPickerStyle copyWith({
TextStyle? headerTextStyle,
FCalendarEntryStyle Function(FCalendarEntryStyle style)? current,
FCalendarEntryStyle Function(FCalendarEntryStyle style)? enclosing,
int? startDayOfWeek,
double? tileSize,
}) => FCalendarDayPickerStyle(
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
current: current != null ? current(this.current) : this.current,
enclosing: enclosing != null ? enclosing(this.enclosing) : this.enclosing,
startDayOfWeek: startDayOfWeek ?? this.startDayOfWeek,
tileSize: tileSize ?? this.tileSize,
);