Generator class abstract

A general proposed abstract class for code generating on files.

Constructors

Generator.new({required Iterable<FileSystemEntity> entries, String? sdkPath, ResourceProvider? resourceProvider})
This constructor is designed for code reuse by subclasses.

Properties

entries Iterable<FileSystemEntity>
All files and folders to be included inside the analysis.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkPath String?
Specify a SDK to use, or null for current default SDK.
final

Methods

generate(File file, CompilationUnit unit) → void
Override this method to specify how to generate according to the source file and the parsed unit of the abstract syntax tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(File file) Future<SomeResolvedUnitResult>
Analysis a file and return the result.
toString() String
A string representation of this object.
inherited
update(File file) Future<void>
Update a file and generate if the analysis succeeds.

Operators

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