operator [] method
Implementation
HashPixel operator [](int index) {
final int baseIndex = index * 4;
return HashPixel(
r: hashList[baseIndex],
g: hashList[baseIndex + 1],
b: hashList[baseIndex + 2],
a: hashList[baseIndex + 3],
);
}