RestClientOutputBuilder class
A custom builder that redirects generated files into lib/<outputDir>/.
The output folder defaults to generated and can be overridden per-builder
in the consumer's build.yaml:
targets:
$default:
builders:
rest_client_builder|rest_model:
options:
output_dir: my_gen # → lib/my_gen/<path>.g.dart
Constructors
- RestClientOutputBuilder(Generator generator, {required String generatedExtension, required String outputDir})
- Creates a RestClientOutputBuilder.
Properties
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setter
- generatedExtension → String
-
The generated extension to append to target file paths.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- outputDir → String
-
Output subfolder under
lib/(configurable viaoutput_diroption).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildStep buildStep) → FutureOr< void> -
Generates the outputs for a given
BuildStep. -
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