copyWith method

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

A copy with the given fields replaced.

Implementation

MorphSurfaceSpec copyWith({
  ShapeBorder? shape,
  Color? color,
  double? elevation,
}) {
  return MorphSurfaceSpec(
    shape: shape ?? this.shape,
    color: color ?? this.color,
    elevation: elevation ?? this.elevation,
  );
}