LocaleName class

Wrapper around Locale, it's name, flag, language and few helpers.

Created to allow special names, like: showOtherLocales and systemLocale.

A bestMatch is either: locale itself OR closest match (for systemLocale).

Constructors

LocaleName({String name = '', Locale? locale, Widget? flag, String? language})
LocaleName.system({Widget? flag})
A special LocaleName for systemLocale.
factory

Properties

bestMatch Locale
Exact Locale for regular locales, and guess for systemLocale.
no setter
flag Widget?
Find flag for name.
no setter
hashCode int
The hash code for this object.
no setterinherited
language String
Search in LocaleManager.reassignFlags first, and if not found return name.
no setter
locale Locale?
Is Locale for ordinary locales, null for showOtherLocales, dynamic for systemLocale.
final
name String
Either Locale.toString() or one of special names, like: systemLocale or showOtherLocales.
final
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.
override

Operators

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