LocalizationConfig class
Represents the configuration for localization settings.
This class encapsulates settings related to localization, including the default locale and a list of supported locales. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
Constructors
-
LocalizationConfig({required String defaultLocale, required List<
String> supportedLocales}) - Creates a LocalizationConfig instance.
-
LocalizationConfig.fromJson(Map<
String, dynamic> json) -
Creates a LocalizationConfig instance from a JSON map.
factory
Properties
- defaultLocale → String
-
The default locale for the application.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedLocales
→ List<
String> -
A list of supported locales.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this LocalizationConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited