EzLocalization class

The EzLocalization class.

Constructors

EzLocalization({Locale locale = const Locale('en'), GetPathFunction getPathFunction = defaultGetPathFunction, required String notFoundString})
Creates a new ez localization instance.

Properties

getPathFunction GetPathFunction
The get path function.
final
hashCode int
The hash code for this object.
no setterinherited
locale Locale
The current locale.
final
notFoundString String
The string to return if the key is not found.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key, [dynamic args]) String
Returns the string associated to the specified key.
load() Future<bool>
Loads the localized strings.
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 Methods

defaultGetPathFunction(Locale locale) String
The default get path function.
of(BuildContext context) EzLocalization?
Returns the EzLocalization instance attached to the specified build config.

Constants

defaultNotFoundString → const String
The default notFoundString.