copyWith method
- @useResult
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- FButtonStyleDelta? buttonStyle,
- TextStyleDelta? headerTextStyle,
- double? headerIconSize,
- Widget previousIcon(
- BuildContext, {
- String? semanticsLabel,
- Widget toggleIcon(
- BuildContext, {
- String? semanticsLabel,
- Widget nextIcon(
- BuildContext, {
- String? semanticsLabel,
- 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.previousIcon - The previous-month icon builder.
- FCalendarHeaderStyle.toggleIcon - The year-month toggle icon builder.
- FCalendarHeaderStyle.nextIcon - The next-month icon builder.
- FCalendarHeaderStyle.animationDuration - The arrow turn animation's duration.
Implementation
@useResult
FCalendarHeaderStyle copyWith({
FFocusedOutlineStyleDelta? focusedOutlineStyle,
FButtonStyleDelta? buttonStyle,
TextStyleDelta? headerTextStyle,
double? headerIconSize,
Widget Function(BuildContext, {String? semanticsLabel})? previousIcon,
Widget Function(BuildContext, {String? semanticsLabel})? toggleIcon,
Widget Function(BuildContext, {String? semanticsLabel})? nextIcon,
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,
previousIcon: previousIcon ?? this.previousIcon,
toggleIcon: toggleIcon ?? this.toggleIcon,
nextIcon: nextIcon ?? this.nextIcon,
animationDuration: animationDuration ?? this.animationDuration,
);