Localize class
A class responsible for managing localization and retrieving localized strings.
This class uses the Locale
to provide localized strings based on the current
language.
Example usage:
Localize localize = Localize(Locale('en'));
print(localize.greeting('hello')); // Outputs: Hello World
Properties
Methods
-
greeting(
String key) → String - Retrieves the greeting string for the given key.
-
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
Static Methods
-
of(
BuildContext context) → Localize -
Retrieves the
Localize
instance from the providedBuildContext
.