ServiceProvider class abstract

Describes a simple ServiceProvider

Constructors

ServiceProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, dynamic>
Additional provider parameters. If a service is not registered, the provider will also look inside the parameters. If there is a entry that match the name of the service parameter and the type matches the expected type, this parameter is used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

boot() → void
Boot the service container. While booting the service provider, preloaded services are instantiated.
has<T>([Type? type]) bool
Checks if a with the T or type is registered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve<T>() → T
Resolves a Service of the given Type.
resolveByTag(Symbol tag) List
Resolves all registered services with the given tag.
toString() String
A string representation of this object.
inherited
tryResolve<T>() → T?
Try to resolve a Service of the given Type.

Operators

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