copyWith method
- @useResult
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- FButtonStyleDelta? buttonStyle,
- TextStyleDelta? headerTextStyle,
- double? headerIconSize,
- Duration? animationDuration,
Returns a copy of this FCalendarHeaderStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FCalendarHeaderStyle.focusedOutlineStyle - The focused outline style.
- FCalendarHeaderStyle.buttonStyle - The button style.
- FCalendarHeaderStyle.headerTextStyle - The header's text style.
- FCalendarHeaderStyle.headerIconSize - The header's icon size.
- FCalendarHeaderStyle.animationDuration - The arrow turn animation's duration.
Implementation
@useResult
FCalendarHeaderStyle copyWith({
FFocusedOutlineStyleDelta? focusedOutlineStyle,
FButtonStyleDelta? buttonStyle,
TextStyleDelta? headerTextStyle,
double? headerIconSize,
Duration? animationDuration,
}) => .new(
focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
buttonStyle: buttonStyle?.call(this.buttonStyle) ?? this.buttonStyle,
headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
headerIconSize: headerIconSize ?? this.headerIconSize,
animationDuration: animationDuration ?? this.animationDuration,
);