printBytes method

  1. @override
Future<String> printBytes(
  1. Uint8List bytes
)
override

Implementation

@override
Future<String> printBytes(Uint8List bytes) async {
  try {
    return await methodChannel
            .invokeMethod<String>('printBytes', {'bytes': bytes}) ??
        'invalid';
  } on MissingPluginException catch (_) {
    throw MissingPluginException(
        'No method found for printBytes() on channel');
  }
}