LeanBuilder class

Annotation for defining a build-time builder.

Classes annotated with LeanBuilder are recognized by the build system and will be instantiated to process source files during the build process.

Annotations
  • @Target(<TargetKind>{TargetKind.classType})

Constructors

LeanBuilder.new({String? key, Set<Type>? registerTypes, bool? generateToCache, Set<String>? generateFor, Set<String>? runsBefore, Map<String, dynamic>? options, Set<String>? applies})
The default constructor
const

Properties

applies Set<String>?
Builder keys that this generator applies to.
final
generateFor Set<String>?
Glob patterns specifying which files this builder should process.
final
generateToCache bool?
Whether output should be cached. If true, the builder's output will be stored in the build cache.
final
hashCode int
The hash code for this object.
no setterinherited
key String?
Optional unique identifier for this builder.
final
options Map<String, dynamic>?
Additional configuration options for this builder.
final
registerTypes Set<Type>?
The Types this builder intends to uses for type checking.
final
runsBefore Set<String>?
Builder keys that should run before this builder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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