operator []= method Null safety

void operator []=(
  1. int index,
  2. int value
)

Implementation

operator []=(int index, int value) => colors[index] = value;