FlutterTranslateGen class
- Inheritance
-
- Object
- AnnotationGenerator<
TranslateKeysOptions> - FlutterTranslateGen
Constructors
- FlutterTranslateGen()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeChecker → TypeChecker
-
no setterinherited
Methods
-
generate(
LibraryReader library, BuildStep buildStep) → FutureOr< String> -
Generates Dart code for an input Dart library.
inherited
-
generateForAnnotatedElement(
Element element, ConstantReader annotation, BuildStep buildStep) → Future< String> -
override
-
getKeyFieldName(
String key, TranslateKeysOptions options) → String -
getKeyMap(
BuildStep step, TranslateKeysOptions options) → Future< List< LocalizedItem> > -
getTranslationMap(
Map< String, dynamic> jsonMap, {String? parentKey}) → Map<String, String> -
normalizeGeneratorOutput(
Object? value) → Stream< String> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseOptions(
ConstantReader annotation) → TranslateKeysOptions -
toString(
) → String -
A string representation of this object.
inherited
-
validateClass(
Element element) → void -
validateClassName(
String? className) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
reservedKeys
↔ List<
String> -
getter/setter pair