copyWith method Null safety

BottomAppBarTheme copyWith(
  1. {Color? color,
  2. double? elevation,
  3. NotchedShape? shape}
)

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,
}) {
  return BottomAppBarTheme(
    color: color ?? this.color,
    elevation: elevation ?? this.elevation,
    shape: shape ?? this.shape,
  );
}