AmwalSdkSettingContainer class

Container class for storing global SDK settings and configuration.

This class provides a centralized location for storing SDK-wide settings that need to be accessed across different parts of the application. It follows the singleton pattern to ensure consistent access to settings.

Features

  • Global Settings: Stores settings accessible throughout the SDK
  • Locale Management: Centralized locale configuration for internationalization
  • Singleton Pattern: Ensures single instance for consistent state
  • Easy Access: Simple static access to common settings

Usage Example

// Set the locale for the entire SDK
AmwalSdkSettingContainer.locale = const Locale('ar');

// Access the current locale
final currentLocale = AmwalSdkSettingContainer.locale;

// Use in localization
final localizedText = 'hello'.translate(context, globalTranslator: currentLocale);

Available Settings

  • locale: The current locale setting for internationalization

Note

This class is designed for internal SDK use and should not be modified directly by application code in most cases.

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

Static Properties

locale Locale
The current locale setting for the SDK.
getter/setter pair