setMax method Null safety

  1. @override
void setMax(
  1. PvrtcColorRgba c
)
override

Implementation

@override
void setMax(PvrtcColorRgba c) {
  if (c.r > r) {
    r = c.r;
  }
  if (c.g > g) {
    g = c.g;
  }
  if (c.b > b) {
    b = c.b;
  }
  if (c.a > a) {
    a = c.a;
  }
}