copyWith method
- @useResult
- BoxDecoration? decoration,
- ImageFilter? backgroundFilter,
- EdgeInsetsGeometry? padding,
- FBottomNavigationBarItemStyle itemStyle()?,
Returns a copy of this FBottomNavigationBarStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FBottomNavigationBarStyle.decoration - The decoration.
- FBottomNavigationBarStyle.backgroundFilter - An optional background filter.
- FBottomNavigationBarStyle.padding - The padding.
- FBottomNavigationBarStyle.itemStyle - The item's style.
Implementation
@useResult
FBottomNavigationBarStyle copyWith({
BoxDecoration? decoration,
ImageFilter? backgroundFilter,
EdgeInsetsGeometry? padding,
FBottomNavigationBarItemStyle Function(FBottomNavigationBarItemStyle style)? itemStyle,
}) => FBottomNavigationBarStyle(
decoration: decoration ?? this.decoration,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
padding: padding ?? this.padding,
itemStyle: itemStyle != null ? itemStyle(this.itemStyle) : this.itemStyle,
);