green method Null safety

int green(
  1. int color
)

Implementation

int green(int color) => colors[color * 3 + 1];