copyWith method

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

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FCalendarHeaderStyle copyWith({
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
  FButtonStyle Function(FButtonStyle style)? 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,
);