Injectable class

Classes, annotated with Injectable are able to be managed by an environment This is also an indicator for the code-generator to emit the meta-data.

Inheritance
  • Object
  • ClassAnnotation
  • Injectable

Constructors

Injectable({bool factory = true, bool eager = true, bool replace = false, String scope = 'singleton'})
const

Properties

eager bool
final
factory bool
final
hashCode int
The hash code for this object.
no setterinherited
replace bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
final

Methods

apply(TypeDescriptor type) → void
callback executed by the type infrastructure type the TypeDescriptor of the annotated class
override
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