copyWith method
- Color? color,
- double? elevation,
- NotchedShape? shape,
- double? height,
- Color? surfaceTintColor,
- Color? shadowColor,
- EdgeInsetsGeometry? padding,
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
BottomAppBarTheme copyWith({
Color? color,
double? elevation,
NotchedShape? shape,
double? height,
Color? surfaceTintColor,
Color? shadowColor,
EdgeInsetsGeometry? padding,
}) {
return BottomAppBarTheme(
color: color ?? this.color,
elevation: elevation ?? this.elevation,
shape: shape ?? this.shape,
height: height ?? this.height,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
shadowColor: shadowColor ?? this.shadowColor,
padding: padding ?? this.padding,
);
}