copyWith method
Material2BottomBarTheme
copyWith({
- Color? selectedItemColor,
- Color? unselectedItemColor,
- Color? bgColor,
- BottomNavigationBarType? type,
- IconThemeData? iconThemeData,
- double? elevation,
- double? selectedFontSize,
- double? unselectedFontSize,
- double? iconSize,
- 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,
);
}