copyWith method

  1. @useResult
FCalendarDayStyle copyWith({
  1. TextStyleDelta? textStyle,
  2. DecorationDelta? foreground,
  3. DecorationDelta? background,
})

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

See customizing widget styles.

Parameters

Implementation

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