copyWith method

  1. @useResult
FCalendarHeaderStyle copyWith({
  1. FFocusedOutlineStyleDelta? focusedOutlineStyle,
  2. FButtonStyleDelta? buttonStyle,
  3. TextStyleDelta? headerTextStyle,
  4. double? headerIconSize,
  5. Duration? animationDuration,
})

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

See customizing widget styles.

Parameters

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,
);