copyWith method

BottomAppBarTheme copyWith(
  1. {Color? color,
  2. double? elevation,
  3. NotchedShape? shape,
  4. double? height,
  5. Color? surfaceTintColor,
  6. Color? shadowColor,
  7. 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,
  );
}