copyWith method
- @useResult
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FWidgetStateMap<
TextStyle> ? textStyle, - EdgeInsetsGeometry? padding,
- double? spacing,
- FTappableStyle tappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
Returns a copy of this FBottomNavigationBarItemStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FBottomNavigationBarItemStyle.iconStyle - The icon's style.
- FBottomNavigationBarItemStyle.textStyle - The text style.
- FBottomNavigationBarItemStyle.padding - The padding.
- FBottomNavigationBarItemStyle.spacing - The spacing between the icon and the label.
- FBottomNavigationBarItemStyle.tappableStyle - The item's tappable's style.
- FBottomNavigationBarItemStyle.focusedOutlineStyle - The item's focused outline style.
Implementation
@useResult
FBottomNavigationBarItemStyle copyWith({
FWidgetStateMap<IconThemeData>? iconStyle,
FWidgetStateMap<TextStyle>? textStyle,
EdgeInsetsGeometry? padding,
double? spacing,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
}) => FBottomNavigationBarItemStyle(
iconStyle: iconStyle ?? this.iconStyle,
textStyle: textStyle ?? this.textStyle,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
);