BaseAppLocaleUtils<E extends BaseAppLocale<T>, T extends BaseTranslations> class abstract

Provides utility functions without any side effects.

Available extensions

Constructors

BaseAppLocaleUtils({required E baseLocale, required List<E> locales})

Properties

baseLocale → E
Internal: The base locale
final
hashCode int
The hash code for this object.
no setterinherited
locales List<E>
Internal: All locales, unordered
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
parse(String rawLocale) → E

Available on BaseAppLocaleUtils<E, T>, provided by the AppLocaleUtilsExt extension

Parses the raw locale to get the enum. Fallbacks to base locale.
parseAppLocale(BaseAppLocale<BaseTranslations> locale) → E

Available on BaseAppLocaleUtils<E, T>, provided by the AppLocaleUtilsExt extension

Gets the E type of locale.
parseLocaleParts({required String languageCode, String? scriptCode, String? countryCode}) → E

Available on BaseAppLocaleUtils<E, T>, provided by the AppLocaleUtilsExt extension

Finds the locale type E which fits the locale parts the best. Fallbacks to base locale.
toString() String
A string representation of this object.
inherited

Operators

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