copyWith method

NiceGradientValue copyWith({
  1. NiceGradientType? type,
  2. double? angle,
  3. List<NiceGradientStop>? stops,
  4. bool? repeating,
})

Implementation

NiceGradientValue copyWith({
  NiceGradientType? type,
  double? angle,
  List<NiceGradientStop>? stops,
  bool? repeating,
}) =>
    NiceGradientValue(
      type: type ?? this.type,
      angle: angle ?? this.angle,
      stops: stops ?? this.stops,
      repeating: repeating ?? this.repeating,
    );