Scope class abstract

This class used to store instances of dependencies.

There are 3 different implementation of Scope provided out of the box. The unique implementation provide new instance every time. The singleton implementation provide new instance of specific type only once. The cached implementation provide same instance of specific type while not reset.

Constructors

Scope()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
provideUsing(Factory factory) → dynamic
Returns instance created using factory
reset() → void
Drop previously created instances
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

cached Scope
final
singleton Scope
final
unique Scope
final