copyWith method
- @useResult
- FFocusedOutlineStyle focusedOutlineStyle()?,
- FButtonStyle buttonStyle()?,
- TextStyle? headerTextStyle,
- 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,
);