copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FBottomNavigationBarItemStyle copyWith({
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta>? iconStyle,
  FVariantsDelta<FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta>? textStyle,
  EdgeInsetsGeometryDelta? padding,
  double? spacing,
  FTappableStyleDelta? tappableStyle,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
}) => .new(
  iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
  textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
  padding: padding?.call(this.padding) ?? this.padding,
  spacing: spacing ?? this.spacing,
  tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
);