JsonLocalizationsDelegate class

JsonLocalizationsDelegate add this to MaterialApp.localizationsDelegates

Inheritance

Constructors

JsonLocalizationsDelegate({required String path, AssetBundle? assetBundle})

Properties

hashCode int
The hash code for this object.
no setterinherited
localization JsonLocalizations
final
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
We expect all supportedLocales to have asset files.
override
load(Locale locale) Future<JsonLocalizations>
Start loading the resources for locale. The returned future completes when the resources have finished loading.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldReload(covariant JsonLocalizationsDelegate old) bool
Returns true if the resources for this delegate should be loaded again by calling the load method.
override
toString() String
A string representation of this object.
inherited

Operators

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