ErrorCodes class
Constants for Nimbbl Flutter SDK
🎉 Production Ready SDK - Simple Integration!
This file contains all the constants used by the Nimbbl Flutter SDK. These constants provide error messages, default configurations, and other static values used throughout the SDK.
Key Constants:
- SDKConstants: SDK name and version constants
- ErrorMessages: User-friendly error messages
- DefaultConfig: Default SDK configuration
- ErrorCodes: Error code constants (for future use)
Example Usage:
// Using SDK constants
print('SDK Name: ${SDKConstants.sdkName}');
print('SDK Version: ${SDKConstants.sdkVersion}');
// Using error messages
try {
await NimbblCheckoutSDK.instance.checkout(options);
} catch (e) {
if (e.toString().contains('NOT_INITIALIZED')) {
print(ErrorMessages.sdkNotInitialized);
await NimbblCheckoutSDK.instance.initialize();
}
}
@version 1.0.11 @author Nimbbl Tech Error Codes (only used ones kept, others commented for potential future use)
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited