GooglePass.fromToken constructor
GooglePass.fromToken(
- String token
Creates a new GooglePass from a given token.
Will throw a PlatformWalletException if the wallet API is not available.
Example:
const String token = "ey...";
try {
final GooglePass pass = GooglePass.fromToken(token);
pass.save();
} on PlatformWalletException catch (e) {
print("Something went wrong...");
print(e);
}
Implementation
factory GooglePass.fromToken(String token) {
return GooglePass._(type: GooglePassType.jwt, token: token);
}