PurchaseError class

Purchase error class (OpenIAP compliant)

Implemented types

Constructors

PurchaseError.new({required String message, String? name, int? responseCode, String? debugMessage, ErrorCode? code, String? productId, 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
message String
final
name String
final
platform IapPlatform?
final
productId String?
final
responseCode int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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