PKPass class

PKPass is the object to interact with Apple's wallet. Only works on iOS, otherwise will throw an assertion error when created.

Call static functions PKPass.fromBytes or PKPass.fromUrl to build a new PKPass.

Constructors

PKPass.fromBytes(Uint8List data)
Creates a new PKPass object from a given Uint8List.
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Saves a PKPass, showing a modal preview of the pass.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromUrl(Uri url, {Map<String, String?>? headers}) Future<PKPass>
Creates a new PKPass object from a given Uri. Additional headers can be sent with the headers parameter.