copyWith method

HTMLColor copyWith({
  1. int? red,
  2. int? green,
  3. int? blue,
  4. double? alpha,
})

Creates a copy of this instance, overwriting the passed parameters.

Implementation

HTMLColor copyWith({int? red, int? green, int? blue, double? alpha}) =>
    HTMLColor(
      red ?? this.red,
      green ?? this.green,
      blue ?? this.blue,
      alpha ?? this.alpha,
    );