copyWith method
- @useResult
- TextStyleDelta? headerTextStyle,
- FCalendarEntryStyleDelta? current,
- FCalendarEntryStyleDelta? enclosing,
- int? startDayOfWeek = -1,
- double? tileSize,
Returns a copy of this FCalendarDayPickerStyle with the given properties replaced.
See customizing widget styles.
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({
TextStyleDelta? headerTextStyle,
FCalendarEntryStyleDelta? current,
FCalendarEntryStyleDelta? enclosing,
int? startDayOfWeek = -1,
double? tileSize,
}) => .new(
headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
current: current?.call(this.current) ?? this.current,
enclosing: enclosing?.call(this.enclosing) ?? this.enclosing,
startDayOfWeek: startDayOfWeek == -1 ? this.startDayOfWeek : startDayOfWeek,
tileSize: tileSize ?? this.tileSize,
);