copyWith method

  1. @useResult
FCalendarYearStyle copyWith({
  1. TextStyleDelta? textStyle,
  2. DecorationDelta? decoration,
})

Returns a copy of this FCalendarYearStyle with the given properties replaced.

See customizing widget styles.

Parameters

Implementation

@useResult
FCalendarYearStyle copyWith({TextStyleDelta? textStyle, DecorationDelta? decoration}) => .new(
  textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
);