ServiceLocator<TState> class

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

Constructors

ServiceLocator(Context<TState> _context, List<Service> services)
Create a locator from a state reader.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services List<Service>
final

Methods

create<TService>([String name = Service.defaultName]) → TService
Create a Service instance for the current state.
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