Box constructor Null safety

Box(
  1. {int r0 = 0,
  2. int r1 = 0,
  3. int g0 = 0,
  4. int g1 = 0,
  5. int b0 = 0,
  6. int b1 = 0,
  7. int vol = 0}
)

Implementation

Box(
    {this.r0 = 0,
    this.r1 = 0,
    this.g0 = 0,
    this.g1 = 0,
    this.b0 = 0,
    this.b1 = 0,
    this.vol = 0});