DartOptions class

Options that control how Dart code will be generated.

Constructors

DartOptions({Iterable<String>? copyrightHeader, String? sourceOutPath, String? testOutPath})
Constructor for DartOptions.
const

Properties

copyrightHeader Iterable<String>?
A copyright header that will get prepended to generated code.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceOutPath String?
Path to output generated Dart file.
final
testOutPath String?
Path to output generated Test file for tests.
final

Methods

merge(DartOptions options) DartOptions
Overrides any non-null parameters from options into this to make a new DartOptions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object>
Converts a DartOptions to a Map representation where: x = DartOptions.fromMap(x.toMap()).
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, Object> map) DartOptions
Creates a DartOptions from a Map representation where: x = DartOptions.fromMap(x.toMap()).