CarburetorProvide class

Base annotation class for all Carburetor provider annotations.

Concrete subclasses such as Provide, ProvideAsync, Singleton, and SingletonAsync configure how the Carburetor build system creates and manages the annotated dependency.

Implementers
Annotations
  • @Target.new({TargetKind.classType})

Constructors

CarburetorProvide({bool singleton = false, bool lazy = true, bool weak = false, bool async = false})
Creates a CarburetorProvide annotation with the given options.
const

Properties

async bool
Whether the provider factory is asynchronous.
final
hashCode int
The hash code for this object.
no setterinherited
lazy bool
Whether the singleton instance is created on first access rather than at module construction time.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleton bool
Whether the dependency is managed as a singleton.
final
weak bool
Whether the singleton instance may be garbage-collected when no strong references to it remain.
final

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