red method Null safety

int red(
  1. int color
)

Implementation

int red(int color) => colors[color * 3];