Create class

Methods annotated with Create are factories for the return type. eager if true, thg instance wil be created automatically. This is the default scope tge scope. Default tis "singleton"

Inheritance
  • Object
  • MethodAnnotation
  • Create

Constructors

Create({bool eager = true, bool replace = false, String scope = "singleton"})
const

Properties

eager 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, MethodDescriptor method) → void
callback executed by the type infrastructure type the TypeDescriptor of the annotated class method the MethodDescriptor of the annotated method
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