WebPurchaseRedemptionResult class abstract

Annotations
  • @freezed

Constructors

WebPurchaseRedemptionResult.error({required PurchasesError error})
const
factory
WebPurchaseRedemptionResult.expired({required String obfuscatedEmail})
const
factory
WebPurchaseRedemptionResult.fromJson(Map<String, dynamic> json)
factory
WebPurchaseRedemptionResult.invalidToken()
const
factory
WebPurchaseRedemptionResult.purchaseBelongsToOtherUser()
const
factory
WebPurchaseRedemptionResult.success({required CustomerInfo customerInfo})
const
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

Methods

map<TResult extends Object?>({required TResult success(_Success value), required TResult error(_Error value), required TResult purchaseBelongsToOtherUser(_PurchaseBelongsToOtherUser value), required TResult invalidToken(_InvalidToken value), required TResult expired(_Expired value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? success(_Success value)?, TResult? error(_Error value)?, TResult? purchaseBelongsToOtherUser(_PurchaseBelongsToOtherUser value)?, TResult? invalidToken(_InvalidToken value)?, TResult? expired(_Expired value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult success(_Success value)?, TResult error(_Error value)?, TResult purchaseBelongsToOtherUser(_PurchaseBelongsToOtherUser value)?, TResult invalidToken(_InvalidToken value)?, TResult expired(_Expired value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult success(CustomerInfo customerInfo)?, TResult error(PurchasesError error)?, TResult purchaseBelongsToOtherUser()?, TResult invalidToken()?, TResult expired(String obfuscatedEmail)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult success(CustomerInfo customerInfo), required TResult error(PurchasesError error), required TResult purchaseBelongsToOtherUser(), required TResult invalidToken(), required TResult expired(String obfuscatedEmail)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? success(CustomerInfo customerInfo)?, TResult? error(PurchasesError error)?, TResult? purchaseBelongsToOtherUser()?, TResult? invalidToken()?, TResult? expired(String obfuscatedEmail)?}) → TResult?
inherited

Operators

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