copyWith method
- @useResult
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FButtonStyle buttonStyle(
- FButtonStyle style
- TextStyle? headerTextStyle,
- Duration? animationDuration,
Returns a copy of this FCalendarHeaderStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FCalendarHeaderStyle.focusedOutlineStyle - The focused outline style.
- FCalendarHeaderStyle.buttonStyle - The button style.
- FCalendarHeaderStyle.headerTextStyle - The header's text style.
- FCalendarHeaderStyle.animationDuration - The arrow turn animation's duration.
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,
);