copyWith method

  1. @useResult
FCalendarEntryStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. Color? hoveredBackgroundColor,
  4. TextStyle? hoveredTextStyle,
  5. Color? focusedBorderColor,
  6. Radius? radius,
})

Returns a copy of this FCalendarEntryStyle but with the given fields replaced with the new values.

Implementation

@useResult
FCalendarEntryStyle copyWith({
  Color? backgroundColor,
  TextStyle? textStyle,
  Color? hoveredBackgroundColor,
  TextStyle? hoveredTextStyle,
  Color? focusedBorderColor,
  Radius? radius,
}) =>
    FCalendarEntryStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      textStyle: textStyle ?? this.textStyle,
      hoveredBackgroundColor: hoveredBackgroundColor ?? this.hoveredBackgroundColor,
      hoveredTextStyle: hoveredTextStyle ?? this.hoveredTextStyle,
      focusedBorderColor: focusedBorderColor ?? this.focusedBorderColor,
      radius: radius ?? this.radius,
    );