setPixelIndex method

void setPixelIndex(
  1. int x,
  2. int y,
  3. num i
)

Set the index value for palette images, or the red channel otherwise.

Implementation

void setPixelIndex(int x, int y, num i) => data?.setPixelR(x, y, i);