printBlock method
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;
}