ServiceLocator class

A locator that allows to create external services for the current state.

Constructors

ServiceLocator(StateReader _state)
Create a locator from a state reader.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

create<Service>([String name]) → Service
Create a Service instance for the current state. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
register<Service, State>(Service builder(State state, ServiceLocator locator), {String name}) → void
Register a service builder which allows to call create. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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