copyWith method

  1. @useResult
FHeaderActionStyle copyWith({
  1. FWidgetStateMap<IconThemeData>? iconStyle,
  2. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle
    )?,
  3. FTappableStyle tappableStyle(
    1. FTappableStyle
    )?,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

iconStyle

The icon's style.

Supported states:

focusedOutlineStyle

The outline style when this action is focused.

tappableStyle

The tappable's style.

Implementation

@useResult
FHeaderActionStyle copyWith({
  FWidgetStateMap<IconThemeData>? iconStyle,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle)? focusedOutlineStyle,
  FTappableStyle Function(FTappableStyle)? tappableStyle,
}) => FHeaderActionStyle(
  iconStyle: iconStyle ?? this.iconStyle,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
);