AutoLocalizedLocale class

Defines locale for AutoLocalized.locales. Used for associate languageCode and country code with translationsFiles.

Constructors

AutoLocalizedLocale({required String languageCode, String? countryCode, required List<String> translationsFiles})
const

Properties

countryCode String?
Country code that will be used in generated source This field is optional
final
hashCode int
The hash code for this object.
no setterinherited
languageCode String
Language code that will be used in generated source Can't be blank
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translationsFiles List<String>
List of paths to translations files that will be parsed during source generation. You can split your translations to as many dirs and files as wanted but keys needs to be unique across all of files. Can't be blank or empty Supported file formats: JSON, YAML.
final

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