ParseMethodGenerator class

Creates the parser by reading annotated Dart code.

Note: If buile_runner isn't returing an output, turn on extra-verbosesssssss logging to see the generated code before it goes through the formatter:

dart pub run build_runner build -vv

Constructors

ParseMethodGenerator(bool nullSafe)

Properties

hashCode int
The hash code for this object.
no setterinherited
nullSafe bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Reads a single Dart file and emits the matching parser. Called once per source file.
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