copyWith method

RgbModel copyWith({
  1. int? r,
  2. int? g,
  3. int? b,
  4. double? opacity,
})

Implementation

RgbModel copyWith({
  int? r,
  int? g,
  int? b,
  double? opacity,
}) {
  return RgbModel(
    r: r ?? this.r,
    g: g ?? this.g,
    b: b ?? this.b,
    opacity: opacity ?? this.opacity,
  );
}