Dependencies class
A class to manage dependencies within the application.
Constructors
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
-
call<
S> () → S - Finds and retrieves a dependency.
-
delete<
S> ({String? tag, bool force = false}) → bool - Deletes a registered dependency.
-
deleteAll(
{bool force = false}) → void - Deletes all registered dependencies.
-
find<
S> ({String? tag}) → S - Finds and retrieves a dependency.
-
isPrepared<
S> ({String? tag}) → bool - Checks if a dependency is prepared.
-
isRegistered<
S> ({String? tag}) → bool - Checks if a dependency is registered.
-
lazyPut<
S> (InstanceBuilderCallback< S> builder, {String? tag, bool fenix = false}) → void - Registers a lazy singleton dependency. fenix: true on it which means it's able to be reconstructed in case it got disposed of before.
-
lazyReplace<
P> (InstanceBuilderCallback< P> builder, {String? tag, bool? fenix}) → void - Registers a lazy singleton dependency, replacing any existing dependency.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put<
S> (S dependency, {String? tag, bool permanent = false, InstanceBuilderCallback< S> ? builder}) → S - Registers a dependency.
-
reload<
S> ({String? tag, String? key, bool force = false}) → void - Reloads a specific dependency.
-
reloadAll(
{bool force = false}) → void - Reloads all registered dependencies.
-
replace<
P> (P child, {String? tag}) → void - Replaces a registered dependency with a new one.
-
spawn<
S> (InstanceBuilderCallback< S> builder, {String? tag, bool permanent = true}) → void - Creates and manages a background isolate dependency.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited