copyWith method

BoxShadow copyWith({
  1. Color? color,
  2. Offset? offset,
  3. double? blurRadius,
  4. double? spreadRadius,
})

📋 Return a BoxShadow with fields that mirror this except for the parameters passed with this method.

Implementation

BoxShadow copyWith({
  Color? color,
  Offset? offset,
  double? blurRadius,
  double? spreadRadius,
}) =>
    BoxShadow(
      color: color ?? this.color,
      offset: offset ?? this.offset,
      blurRadius: blurRadius ?? this.blurRadius,
      spreadRadius: spreadRadius ?? this.spreadRadius,
    );