moveNext method
Move to the next pixel, returning false if it moved past the end of the image data.
Implementation
@override
bool moveNext() {
_x++;
if (_x == width) {
_x = 0;
_y++;
if (_y == height) {
return false;
}
}
_index += numChannels;
return _index < image.data.length;
}