ImageDataUint1.palette constructor

ImageDataUint1.palette(
  1. int width,
  2. int height,
  3. Palette? palette
)

Implementation

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