copyWith method

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

Implementation

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