IapError.fromCode constructor
Creates an error from a code with default message.
Implementation
factory IapError.fromCode(String code,
{String? hint, Object? originalError}) {
return IapError(
code: code,
message: _defaultMessages[code] ?? 'An unknown error occurred',
hint: hint ?? _defaultHints[code],
originalError: originalError,
);
}