FixedLocaleResolver class

Always returns a default locale, implementation of a locale resolver

Inheritance

Constructors

FixedLocaleResolver(Intl locale)
Create a FixedLocaleResolver that exposes the given locale. @param locale the locale to expose

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getDefaultLocale() Intl
Return the default Locale that this resolver is supposed to fall back to, if any.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolveLocale(ForceRequest request) Intl
Resolve the current locale via the given request. Should return a default locale as fallback in any case. @param request the request to resolve the locale for @return the current locale (never null)
override
setDefaultLocale(Intl defaultLocale) → void
Set a default Locale that this resolver will return if no other locale found.
inherited
setLocale(ForceRequest request, covariant Intl locale) → void
Set the current locale to the given one. @param request the request to be used for locale modification @param locale the new locale, or null to clear the locale @throws UnsupportedOperationException if the LocaleResolver implementation does not support dynamic changing of the theme
override
toString() String
Returns a string representation of this object.
inherited

Operators

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