L10nDelegate class

The L10n package's locale delegate Referenced by frameworks (eg. mvc_applicaiton)

Inheritance

Constructors

L10nDelegate()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The type of the object returned by the load method, T by default.
no setterinherited

Methods

isSupported(Locale locale) bool
Indicate to the Flutter framework this delegate can support the passed Locale.
override
load(Locale locale) Future<L10nLocale>
Explicitly load the Locale provided by the Flutter framework.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldReload(covariant L10nDelegate old) bool
Reload if the delegate has changed.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) L10nLocale?
Return an instance of the L10Locale class Really not needed. L10n. prefix can be used instead. Merely for conformity.