GooglePass class

GooglePass is the object to interact with Google's wallet. Only works on Android, otherwise will throw an assertion error when created.

Call static functions GooglePass.fromToken or GooglePass.fromUrl to build a new GooglePass.

Constructors

GooglePass.fromToken(String token)
Creates a new GooglePass from a given token.
factory
GooglePass.fromUrl(Uri uri)
Creates a new GooglePass from a google pay url.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
final
type GooglePassType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Saves the pass, opening the wallet's app on the mobile.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited