VerificationResult class
Result of verifying a purchase or subscription with the store.
Constructors
-
VerificationResult({required bool isValid, required VerificationState state, required StorePlatform platform, String? productId, DateTime? expiresAt, bool? willAutoRenew, bool isSandbox = false, Map<
String, dynamic> raw = const {}}) -
const
- VerificationResult.notFound(StorePlatform platform, {bool isSandbox = false})
-
Result for a token/transaction the store does not know.
const
Properties
- expiresAt → DateTime?
-
Subscription expiration (or end of the current period).
nullfor one-time purchases.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isSandbox → bool
-
Whether the store answered from its sandbox/test environment.
final
- isValid → bool
-
Whether the user should be granted access right now.
final
- platform → StorePlatform
-
Store that answered the verification.
final
- productId → String?
-
Product identifier, when the store returns it.
final
-
raw
→ Map<
String, dynamic> -
Raw decoded store payload, for fields not mapped here.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → VerificationState
-
Normalized state reported by the store.
final
- willAutoRenew → bool?
-
Whether the subscription will renew automatically.
nullwhen unknown or not applicable.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited