JobRegistryBuilder class

Writes lib/generated/jobs.g.dart: a jobRegistry with every @Job() class of the app, and the code to save and load each one. Give it to the app: QueueConfig(jobs: jobRegistry).

The parameters of the unnamed constructor are saved. Each one needs a field or getter of the same name, and a JSON type. The build stops with a clear message when one does not fit.

Constructors

JobRegistryBuilder()
const

Properties

buildExtensions → Map<String, List<String>>
Mapping from input file extension to output file extensions.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildStep buildStep) → Future<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

Static Methods

isDateTime(DartType type) → bool

Constants

output → const String