AdapterBuilder<_ClassAnnotation> class

Writes adapter code (model serialization/deserialization). Outputs to app/adapters/

Inheritance

Constructors

AdapterBuilder(AnnotationSuperGenerator generator)

Properties

buildExtensions Map<String, List<String>>
Mapping from input file extension to output file extensions.
no setteroverride
generator AnnotationSuperGenerator
final
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
no setterinherited
outputExtension String
The cached file this will produce
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeChecker → TypeChecker
finalinherited

Methods

build(BuildStep buildStep) Future<void>
Generates the outputs for a given BuildStep.
getAnnotatedElements(BuildStep buildStep) Future<Iterable<AnnotatedElement>>
Classes with the class-level annotation. For example, ConnectOfflineFirstWithRest.
inherited
logStopwatch(String task, Stopwatch stopwatch) → void
After a task has completed, log time to completion.
inherited
manuallyUpsertAppFile(String path, String contents) Future<File>
Create or write to file.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceWithinFile(String path, Pattern from, String to) Future<File?>
Replace contents of file
inherited
stopwatchToSeconds(Stopwatch stopwatch) String
Stop stopwatch and conditionally format elapsed time as seconds or ms
inherited
toString() String
A string representation of this object.
inherited

Operators

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