printRawText method

  1. @override
Future<Map<String, dynamic>> printRawText(
  1. String text
)
override

Implementation

@override
Future<Map<String, dynamic>> printRawText(String text) async {
  try {
    final Map<String, dynamic> result = Map<String, dynamic>.from(
      await channel.invokeMethod('printRawText', {
        'text': text,
      }),
    );
    return result;
  } on PlatformException catch (e) {
    throw SmartPosException('Failed to print raw text: ${e.message}');
  }
}