copyWith method

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

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

Implementation

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