StructuredGenerator<T> class abstract

An abstract base class that enforces code generation across platforms.

Inheritance
Implementers

Constructors

StructuredGenerator()
Constructor.
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

Methods

generate(T generatorOptions, Root root, StringSink sink, {required String dartPackageName}) → void
Generates files for specified language with specified generatorOptions
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeApis(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all apis to indent.
writeClassDecode(T generatorOptions, Root root, Indent indent, Class klass, Set<String> customClassNames, Set<String> customEnumNames, {required String dartPackageName}) → void
Writes a single class decode method to indent.
writeClassEncode(T generatorOptions, Root root, Indent indent, Class klass, Set<String> customClassNames, Set<String> customEnumNames, {required String dartPackageName}) → void
Writes a single class encode method to indent.
writeCloseNamespace(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes code to indent that closes file namespace if needed.
writeDataClass(T generatorOptions, Root root, Indent indent, Class klass, {required String dartPackageName}) → void
Writes a single data class to indent.
writeDataClasses(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all data classes to indent.
writeEnum(T generatorOptions, Root root, Indent indent, Enum anEnum, {required String dartPackageName}) → void
Writes a single Enum to indent. This is needed in most generators.
writeEnums(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all enums to indent.
writeFileImports(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes specified imports to indent.
writeFilePrologue(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Adds specified headers to indent.
writeFlutterApi(T generatorOptions, Root root, Indent indent, Api api, {required String dartPackageName}) → void
Writes a single Flutter Api to indent.
writeGeneralUtilities(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes any necessary helper utilities to indent if needed.
writeHostApi(T generatorOptions, Root root, Indent indent, Api api, {required String dartPackageName}) → void
Writes a single Host Api to indent.
writeOpenNamespace(T generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes code to indent that opens file namespace if needed.

Operators

operator ==(Object other) bool
The equality operator.
inherited