copyWith method
- @useResult
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FWidgetStateMap<
TextStyle> ? textStyle, - EdgeInsetsGeometry? padding,
- double? spacing,
- FTappableStyle? tappableStyle,
- FFocusedOutlineStyle? focusedOutlineStyle,
inherited
Returns a copy of this FBottomNavigationBarItemStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
Implementation
@useResult
FBottomNavigationBarItemStyle copyWith({
FWidgetStateMap<IconThemeData>? iconStyle,
FWidgetStateMap<TextStyle>? textStyle,
EdgeInsetsGeometry? padding,
double? spacing,
FTappableStyle? tappableStyle,
FFocusedOutlineStyle? focusedOutlineStyle,
}) => FBottomNavigationBarItemStyle(
iconStyle: iconStyle ?? this.iconStyle,
textStyle: textStyle ?? this.textStyle,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
tappableStyle: tappableStyle ?? this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
);