copyWith method
- @useResult
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FFocusedOutlineStyle focusedOutlineStyle()?,
- FTappableStyle tappableStyle()?,
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,
);