PrintCommand.image constructor

PrintCommand.image(
  1. String imagePath, {
  2. double? x,
  3. double? y,
  4. double? width,
  5. double? height,
})

Implementation

factory PrintCommand.image(
  String imagePath, {
  double? x,
  double? y,
  double? width,
  double? height,
}) {
  return PrintCommand(
    text: '',
    isImage: true,
    imagePath: imagePath,
    x: x,
    y: y,
    imageWidth: width,
    imageHeight: height,
  );
}