ResolverBase<T extends ProviderBase> class
abstract
Full documentation: https://www.ezflap.io/deep-dive/di/di.html#injection-provider
Extend this class to create a resolver service that would resolve providers
of type T
into fields annotated with @EzDIProvider
(that is configured
to use the resolver).
The extending class does not need to add or override any functionality
(though it may provide additional functionality).
The main (and usually only) reason to extend ResolverBase is to use the
Dart types system to enforce the connection between resolvers and their
suitable providers.
- Inheritance
-
- Object
- Guid
- $Singleton
- EzServiceBase
- ResolverBase
Constructors
Properties
Methods
-
$initDI(
[Map< String, dynamic> ? mapOverrides]) → void -
inherited
-
getGuid(
) → int -
Get this instance's guid as integer.
inherited
-
getGuidAsString(
) → String -
Get this instance's guid as String.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
) → T -
Call this method to get the current provider of this resolver. Note
that it's usually not necessary to call this method; the provider
resolution is done automatically by
@EzDIProvider
. -
setProvider(
T? provider) → void -
Call this function to set the current provider to inject into fields
with an
@EzDIProvider
configured with this resolver. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited