printBlock method

  1. @override
Future<bool> printBlock(
  1. String text, {
  2. double? x,
  3. double? y,
  4. double? width,
  5. double? height,
  6. int? lineWidth,
  7. int? lineStyle,
})
override

Print a block with text

Implementation

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