operator []= method
Set the color at the specified position.
Use null to make the position transparent.
Implementation
@override
void operator []=(Position position, Color? color) {
_data[position.y * size.width + position.x] = color;
}
Set the color at the specified position.
Use null to make the position transparent.
@override
void operator []=(Position position, Color? color) {
_data[position.y * size.width + position.x] = color;
}