copyWith method

LinearGradientSpec copyWith({
  1. Vec2? start,
  2. Vec2? end,
  3. Iterable<GradientStop>? stops,
})

Implementation

LinearGradientSpec copyWith({
  Vec2? start,
  Vec2? end,
  Iterable<GradientStop>? stops,
}) => LinearGradientSpec(
  start: start ?? this.start,
  end: end ?? this.end,
  stops: stops ?? this.stops,
);