PrintItem.image constructor

const PrintItem.image({
  1. required double x,
  2. required double y,
  3. required double width,
  4. required double height,
  5. required Uint8List imageBytes,
  6. bool antiColor = false,
})

Convenience constructor for image items.

Implementation

const PrintItem.image({
  required double x,
  required double y,
  required double width,
  required double height,
  required Uint8List imageBytes,
  bool antiColor = false,
}) : this(
        type: PrintItemType.image,
        x: x,
        y: y,
        width: width,
        height: height,
        imageBytes: imageBytes,
        antiColor: antiColor,
      );