setChannel method
set the gray value(0-255) at Point(x, y). channel
is ignored
Implementation
@override
void setChannel(int x, int y, int value, [ImageChannel? channel]) {
assert(x >= 0 && x < width, 'x($x) out of with boundary(0 - $width)');
assert(y >= 0 && y < height, 'y($y) out of height boundary(0 - $height)');
_buffer.setUint8(y * _width + x, value);
}