AppTranslations class abstract

Base contract for app translations dictionary.

Designed to be pure Dart with zero Flutter/UI dependencies so that static analysis, code generation, and CLI tools can run outside Flutter.

Available extensions

Constructors

AppTranslations()
const
AppTranslations.fromMap(Map<String, Map<String, String>> map)
Creates an in-memory AppTranslations instance from a Map.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → Map<String, Map<String, String>>
Map of locale keys to key-value translation pairs.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedLocales → List<Locale>

Available on AppTranslations, provided by the AppTranslationsLocalesExtension extension

List of supported locales derived from dictionary keys.
no setter

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 Methods

isLiteralToken(String key) → bool
Determines whether key is a literal UI token (such as a hashtag, handle, URL, phone number, or email address) rather than a translatable dictionary key.