print2ColumnsText method

  1. @override
Future<String> print2ColumnsText(
  1. List<String> listText,
  2. PrintStyle printStyle
)
override

Implementation

@override
Future<String> print2ColumnsText(List<String> listText, PrintStyle printStyle) async {
  try {
    return await methodChannel.invokeMethod<String>('print2ColumnsText', {'texts': listText, 'textAlign': printStyle.textSize}) ?? 'invalid';
  } on MissingPluginException catch (_) {
    throw MissingPluginException('No method found for print2ColumnsText() on channel');
  }
}