copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FCalendarHeaderStyle copyWith({
  EdgeInsetsGeometryDelta? padding,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, Decoration, DecorationDelta>? headerDecoration,
  EdgeInsetsGeometryDelta? tappablePadding,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? headerTextStyle,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? toggleIconStyle,
  FFocusedOutlineStyleDelta? headerFocusedOutlineStyle,
  FButtonStyleDelta? buttonStyle,
  FIcon? toggleIcon,
  FIcon? previousIcon,
  FIcon? nextIcon,
  Duration? animationDuration,
}) => .new(
  padding: padding?.call(this.padding) ?? this.padding,
  headerDecoration: headerDecoration?.call(this.headerDecoration) ?? this.headerDecoration,
  tappablePadding: tappablePadding?.call(this.tappablePadding) ?? this.tappablePadding,
  headerTextStyle: headerTextStyle?.call(this.headerTextStyle) ?? this.headerTextStyle,
  toggleIconStyle: toggleIconStyle?.call(this.toggleIconStyle) ?? this.toggleIconStyle,
  headerFocusedOutlineStyle:
      headerFocusedOutlineStyle?.call(this.headerFocusedOutlineStyle) ?? this.headerFocusedOutlineStyle,
  buttonStyle: buttonStyle?.call(this.buttonStyle) ?? this.buttonStyle,
  toggleIcon: toggleIcon ?? this.toggleIcon,
  previousIcon: previousIcon ?? this.previousIcon,
  nextIcon: nextIcon ?? this.nextIcon,
  animationDuration: animationDuration ?? this.animationDuration,
);