copyWith method

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

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

Implementation

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