copyWith method

  1. @useResult
FCalendarHeaderStyle copyWith({
  1. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle
    )?,
  2. FButtonStyle buttonStyle(
    1. FButtonStyle
    )?,
  3. TextStyle? headerTextStyle,
  4. Duration? animationDuration,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

focusedOutlineStyle

The focused outline style.

buttonStyle

The button style.

headerTextStyle

The header's text style.

animationDuration

The arrow turn animation's duration. Defaults to 200ms.

Implementation

@useResult
FCalendarHeaderStyle copyWith({
  FFocusedOutlineStyle Function(FFocusedOutlineStyle)? focusedOutlineStyle,
  FButtonStyle Function(FButtonStyle)? buttonStyle,
  TextStyle? headerTextStyle,
  Duration? animationDuration,
}) => FCalendarHeaderStyle(
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
  buttonStyle: buttonStyle != null ? buttonStyle(this.buttonStyle) : this.buttonStyle,
  headerTextStyle: headerTextStyle ?? this.headerTextStyle,
  animationDuration: animationDuration ?? this.animationDuration,
);