save method
Saves the pass, opening the wallet's app on the mobile.
Implementation
Future<void> save() async {
final result =
await methodChannel.invokeMethod<String?>("addGoogleWallet", token);
if (result == null || result == "success") {
return;
}
if (result.startsWith("{")) {
throw PlatformWalletException.fromJson(jsonDecode(result));
}
if (result == "unknown") {
throw PlatformWalletException.unknown();
}
}