Skip to main content

AppLocalizations class

<p>This class provides methods to localize the application so that it can be available to users with different languages.</p>

Constructors

AppLocalizations (Locale locale, {bool isTest = false})

Properties

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

isTestbool

<span class="feature">read / write</span>

localeLocale

<span class="feature">final</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

load() Future<bool>
loadTest(Locale locale) Future<AppLocalizations>
noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

strictTranslate(String key) String
toString() String

A string representation of this object.
<span class="feature">inherited</span>

translate(String? key) String?

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>

Static Methods

of(BuildContext context) AppLocalizations?

Constants

delegate const LocalizationsDelegate<AppLocalizations>