InqvineServices class
Holds all Inqvine Core services through a singleton.
These services must be initialized before they can be accessed.
This can be done by calling InqvineServices.instance.register()
in your main.dart file.
Properties
- context → BuildContext
-
The current context if available.
To use this, pass a navigator key to InqvineServices.
no setter
-
The current navigator key, if set.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → InqvineLoggerService
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getEventStream<
T> () → Stream< T> -
Listen to an event bus stream.
Publish new events with
inqvine.publishEvent
. -
getFromLocator<
T extends Object> () → T -
Get an object in the system DI container.
Register the object later using
inqvine.registerInLocator
. -
isRegisteredInLocator<
T extends Object> () → bool -
Check if a class is registered in the locator.
Register the object later using
inqvine.registerInLocator
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publishEvent<
T> (T event) → void -
Publish an object across the system event bus.
This can then be picked up using
inqvine.getEventStream
-
registerInLocator<
T extends Object> (T object) → void -
Register an object in the system DI container.
Get the object later using
inqvine.getFromLocator
. -
registerInqvineServices(
) → Future< void> - Initialize Inqvine services, registering all common services
-
registerService<
T extends InqvineServiceBase> (T service) → Future< void> -
Register an service which extends InqvineServiceBase.
initializeService
is then called. -
resetLocator(
) → Future< void> - Reset the application DI container
- Set a new navigator key for the application.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → InqvineServices
-
no setter