injectColor function

void injectColor(
  1. int i,
  2. Int32List list,
  3. int color
)

Implementation

void injectColor(int i, Int32List list, int color) {
  i *= 6;
  list[i + 0] = list[i + 1] =
      list[i + 2] = list[i + 3] = list[i + 4] = list[i + 5] = color;
}