printImage method

  1. @override
Future<bool> printImage(
  1. String imagePath, {
  2. double? x,
  3. double? y,
  4. double? width,
  5. double? height,
})
override

Print an image

Implementation

@override
Future<bool> printImage(
  String imagePath, {
  double? x,
  double? y,
  double? width,
  double? height,
}) async {
  final result = await methodChannel.invokeMethod<bool>('printImage', {
    'imagePath': imagePath,
    'x': x,
    'y': y,
    'width': width,
    'height': height,
  });
  return result ?? false;
}