Arctium class
Service locator.
Allows easy location of services, UI-oriented stack-based access for services of the same class, auto-disposal of services in centralized queue and O(1) complexity for every operation.
- Inheritance
-
- Object
- Disposable
- Arctium
Constructors
- Arctium.create()
-
Creates a new instance of service locator.
factory
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
-
call<
T> () → T -
get<
T> () → T - Locates the last added service of the given type parameter.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(
) → Future< void> -
override
-
register<
T> (T service) → void - Registers the given service under the given type parameter in the service locator, creating a stack for service's type
-
remove<
T> () → void -
Un-registrates the last added service under the given type parameter, and
calls the onDispose() method if service is
Disposables
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited