I18NGenerator class abstract
The architecture of the I18N generator.
- Implementers
- Annotations
-
- @immutable
Constructors
Properties
- baseName → String
-
The name of the
I18N
class.
final
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setter
- convert → bool
-
If the
I18N
names should be converted using
StringUtils.toCamelCase.final - encoding → Encoding
-
The encoding used for reading the
.jsonand.yamlfiles.finalinherited - exportEncoding → Encoding
-
The encoding used for writing the
.dartfiles.finalinherited - exportPath → String
-
The path to export data to.
finalinherited
-
fileMap
→ Map<
String, Object?> -
The map of files that was loaded from
importPath.finalinherited - formatter → DartFormatter
-
The
formatterused to format generated files.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
i18nMap
→ Map<
String, Map< String, Object?> > -
The map with
I18N
locales as keys and translations as values.
final
- importPath → String
-
The path to import data from.
finalinherited
- loadFiles → bool
-
If file contents should be loaded during
buildintofileMap.finalinherited - onlyLanguageCode → bool
-
If only the language code of the generated
I18N
locales should be used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
[BuildStep? buildStep]) → FutureOr< void> - Generate fileMap from files under importPath.
-
className(
String name, [Iterable< String> keys = const Iterable<String>.empty()]) → String -
The name of the
I18N
class nested with
keys. -
constName(
String name) → String - The name of the I18N instance.
-
enumName(
String name) → String - The name of the I18N enum value.
-
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