PassFile class

Parsed Apple Wallet pass file

Constructors

PassFile({required String id, required File file, required Directory directory, required PassJson pass, PassImage? background, PassImage? footer, PassImage? icon, PassImage? strip, PassImage? thumbnail})
Creates a new instance of PassFile
const

Properties

background PassImage?
The image displayed as the background of the front of the pass.
final
directory Directory
Directory with unpacked pass files
final
file File
passkit File
final
The image displayed on the front of the pass near the barcode.
final
hashCode int
The hash code for this object.
no setterinherited
icon PassImage?
The pass’s icon. This is displayed in notifications and in emails that have a pass attached, and on the lock screen. When it is displayed, the icon gets a shine effect and rounded corners.
final
id String
Pass file id
final
The image displayed on the front of the pass in the top left.
final
pass PassJson
A JSON dictionary that defines the pass.
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
strip PassImage?
The image displayed behind the primary fields on the front of the pass.
final
thumbnail PassImage?
An additional image displayed on the front of the pass. For example, on a membership card, the thumbnail could be used to a picture of the cardholder.
final

Methods

delete() → void
Delete current pass file from memory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Save current PassFile to internal memory and delete previewed pass file
toString() String
A string representation of this object.
inherited

Operators

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