copyWith method

  1. @useResult
FBottomNavigationBarItemStyle copyWith({
  1. double? iconSize,
  2. Color? activeIconColor,
  3. Color? inactiveIconColor,
  4. TextStyle? activeTextStyle,
  5. TextStyle? inactiveTextStyle,
  6. EdgeInsets? padding,
})

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

Implementation

@useResult
FBottomNavigationBarItemStyle copyWith({
  double? iconSize,
  Color? activeIconColor,
  Color? inactiveIconColor,
  TextStyle? activeTextStyle,
  TextStyle? inactiveTextStyle,
  EdgeInsets? padding,
}) =>
    FBottomNavigationBarItemStyle(
      iconSize: iconSize ?? this.iconSize,
      activeIconColor: activeIconColor ?? this.activeIconColor,
      inactiveIconColor: inactiveIconColor ?? this.inactiveIconColor,
      activeTextStyle: activeTextStyle ?? this.activeTextStyle,
      inactiveTextStyle: inactiveTextStyle ?? this.inactiveTextStyle,
      padding: padding ?? this.padding,
    );