openScanner method
Implementation
@override
Future<String?> openScanner() async {
if (!Platform.isAndroid) {
throw Exception('Available only for Android');
}
try {
final result = await methodChannel.invokeMethod<String>('openScanner');
return result;
} catch (e) {
throw Exception('[MethodChannelError] ${e.toString()}');
}
}