FakeAppLocale class
- Inheritance
-
- Object
- BaseAppLocale<
FakeAppLocale, FakeTranslations> - FakeAppLocale
Constructors
Properties
- countryCode → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
final
- languageTag → String
-
Concatenates language, script and country code with dashes.
Resembles
Locale.toLanguageTagof dart:ui.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scriptCode → String?
-
final
-
types
→ Map<
String, ValueFormatter> ? -
final
- underscoreTag → String
-
For whatever reason, the intl package uses underscores instead of dashes
that contradicts https://www.unicode.org/reports/tr35/
that is used by the Locale class in dart:ui.
no setterinherited
Methods
-
build(
{Map< String, Node> ? overrides, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → Future<FakeTranslations> -
Gets a new translation instance.
LocaleSettings has no effect here.
Suitable for dependency injection and unit tests.
override
-
buildSync(
{Map< String, Node> ? overrides, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → FakeTranslations -
Similar to build but synchronous.
This might throw an error on Web if
the library is not loaded yet (Deferred Loading).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sameLocale(
BaseAppLocale< BaseAppLocale, BaseTranslations> other) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited