TranslationLocales class

All the Locales the Translations PLugin supports out of the Box

Constructors

TranslationLocales()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

all Set<Locale>
All Translation Locales in one Set. Could be used in MaterialApp.supportedLocales or in the Translation.init Method
no setter
english Locale
English. This is the Default Location if none is provided to the package. This is commected to the US country Code
no setter
french Locale
French. This is connected to the France country Code
no setter
german Locale
German. This is connected to the Germany country Code
no setter
portuguese Locale
Portuguese. This is not connected to a Country Code
no setter
spanish Locale
Spanish. This is connected to the Spain country Code
no setter

Static Methods

getLocale(String string) Locale
Returns the Locale for the given Language Code