ServiceManager class

a service locator

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

deregister<T>() → void
remove service instance if existed
getService<T extends Object>() → T?
get the service by type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T extends Object>(Type T, T value) → void
register service instance
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ServiceManager
the global shared instance of Service
final