copyWith method

  1. @useResult
FBottomNavigationBarItemStyle copyWith({
  1. FWidgetStateMap<IconThemeData>? iconStyle,
  2. FWidgetStateMap<TextStyle>? textStyle,
  3. EdgeInsetsGeometry? padding,
  4. double? spacing,
  5. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  6. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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,
);