copyWith method

Material2BottomBarTheme copyWith({
  1. Color? selectedItemColor,
  2. Color? unselectedItemColor,
  3. Color? bgColor,
  4. BottomNavigationBarType? type,
  5. IconThemeData? iconThemeData,
  6. double? elevation,
  7. double? selectedFontSize,
  8. double? unselectedFontSize,
  9. double? iconSize,
  10. double? height,
})

Implementation

Material2BottomBarTheme copyWith({
  Color? selectedItemColor,
  Color? unselectedItemColor,
  Color? bgColor,
  BottomNavigationBarType? type,
  IconThemeData? iconThemeData,
  double? elevation,
  double? selectedFontSize,
  double? unselectedFontSize,
  double? iconSize,
  double? height,
}) {
  return Material2BottomBarTheme(
    unselectedItemColor: unselectedItemColor ?? this.unselectedItemColor,
    type: type ?? this.type,
    iconThemeData: iconThemeData ?? this.iconThemeData,
    elevation: elevation ?? this.elevation,
    iconSize: iconSize ?? this.iconSize,
    bgColor: bgColor ?? this.bgColor,
    selectedItemColor: selectedItemColor ?? this.selectedItemColor,
    selectedFontSize: selectedFontSize ?? this.selectedFontSize,
    height: height ?? this.height,
    unselectedFontSize: unselectedFontSize ?? this.unselectedFontSize,
  );
}