PurchaseError class

Purchase error class (OpenIAP compliant)

Implemented types

Constructors

PurchaseError({required String message, String? name, int? responseCode, String? debugMessage, ErrorCode? code, String? productId, List<String>? productIds, String? productType, bool? isEmptyProductList, SubResponseCodeAndroid? subResponseCodeAndroid, IapPlatform? platform})
PurchaseError.fromPlatformError(Map<String, dynamic> errorData, IapPlatform platform)
Creates a PurchaseError from platform-specific error data
factory

Properties

code → ErrorCode?
final
debugMessage → String?
final
hashCode → int
The hash code for this object.
no setterinherited
isEmptyProductList → bool?
final
message → String
final
name → String
final
platform → IapPlatform?
final
productId → String?
final
productIds → List<String>?
final
productType → String?
final
responseCode → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subResponseCodeAndroid → SubResponseCodeAndroid?
final

Methods

getPlatformCode() → dynamic
Gets the platform-specific error code for this error
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