ManagerTable class

A lookup table for managers, store managers inside here to ensure they are singletons

Properties

hashCode int
The hash code for this object.
no setterinherited
managers Map<Type, Manager>
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addManager<T extends Manager>(T manager) → void
Add a manager to the table, only one manager can be added for each state type
addManagers(Iterable<Manager> managers) → void
Add multiple managers to the table, only one manager can be added for each state type
find<T extends Manager>() → T
Look up a manager for the given state type