copyWith method

LinearGradientSpec copyWith({
  1. Color32? color1,
  2. Color32? color2,
  3. double? angle,
  4. double? width,
})

Implementation

LinearGradientSpec copyWith({
  Color32? color1,
  Color32? color2,
  double? angle,
  double? width,
}) => LinearGradientSpec(
  color1: color1 ?? this.color1,
  color2: color2 ?? this.color2,
  angle: angle ?? this.angle,
  width: width ?? this.width,
);