copyWith method

  1. @useResult
FCalendarHeaderStyle copyWith({
  1. FButtonCustomStyle? buttonStyle,
  2. TextStyle? headerTextStyle,
  3. Color? enabledIconColor,
  4. Color? disabledIconColor,
  5. Duration? animationDuration,
})

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

Implementation

@useResult
FCalendarHeaderStyle copyWith({
  FButtonCustomStyle? buttonStyle,
  TextStyle? headerTextStyle,
  Color? enabledIconColor,
  Color? disabledIconColor,
  Duration? animationDuration,
}) =>
    FCalendarHeaderStyle(
      buttonStyle: buttonStyle ?? this.buttonStyle,
      headerTextStyle: headerTextStyle ?? this.headerTextStyle,
      enabledIconColor: enabledIconColor ?? this.enabledIconColor,
      disabledIconColor: disabledIconColor ?? this.disabledIconColor,
      animationDuration: animationDuration ?? this.animationDuration,
    );