ImageDataUint4.palette(int width, int height, this.palette) : rowStride = (width / 2).ceil(), super(width, height, 1) { data = Uint8List(max(rowStride * height, 1)); }