copyWith method
- @useResult
- FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, IconThemeData, IconThemeDataDelta> ? iconStyle, - FVariantsDelta<
FTappableVariantConstraint, FTappableVariant, TextStyle, TextStyleDelta> ? textStyle, - EdgeInsetsGeometryDelta? padding,
- double? spacing,
- FTappableStyleDelta? tappableStyle,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
Returns a copy of this FBottomNavigationBarItemStyle with the given properties replaced.
See customizing widget styles.
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({
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,
);