PurchaseKitEvent class final

One thing the payments kit saw, with no content.

Constructors

PurchaseKitEvent({required String id, required PurchaseKitEventKind kind, required String at, String? source, String? item, PurchasePlan? plan, int? amount})
const
PurchaseKitEvent.fromJson(Map<String, Object?> json)
factory

Properties

amount → int?
For a pack of credits: the credits in it.
final
at → String
RFC 3339 UTC timestamp with six fractional digits, e.g. 2026-08-17T09:30:00.000000Z
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The app’s own id for the event, a lowercase UUID: sent again, it records nothing new.
final
item → String?
The product it was about, by its name in the payments config.
final
kind → PurchaseKitEventKind
paywallShown and shopShown: opened, from source. planPicked and packPicked: a plan or pack chosen. purchaseStarted: the store’s sheet opened. purchaseCancelled: closed in the store’s sheet.
final
plan → PurchasePlan?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String?
The lock, banner or button that opened the paywall or the shop, as the app named it: “Book a visit lock”. drip keeps it as a label: its letters, digits, spaces and ' ’ & ( ) . / , -, up to 60 characters.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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