copyWith method
- @useResult
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FTappableStyle tappableStyle(
- FTappableStyle style
Returns a copy of this FHeaderActionStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FHeaderActionStyle.iconStyle - The icon's style.
- FHeaderActionStyle.focusedOutlineStyle - The outline style when this action is focused.
- FHeaderActionStyle.tappableStyle - The tappable's style.
Implementation
@useResult
FHeaderActionStyle copyWith({
FWidgetStateMap<IconThemeData>? iconStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
}) => FHeaderActionStyle(
iconStyle: iconStyle ?? this.iconStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
);