ServiceContainer class

The object that will hold your AppServices.

Constructors

ServiceContainer(Set<AppService> services)
Example:

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 Iterable<AppService>
Returns all registered Services
no setter

Methods

get<T extends AppService>() → T
Returns the first AppService with type T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runAll() Future<void>
Runs and waits for all AppService.run() calls to complete
toString() String
A string representation of this object.
inherited

Operators

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