CInjector class abstract
Interface responsible to manager dependency injector
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
-
get<
T extends Object> ({String? dependencyName}) → T - Method used to get dependency
-
getAsync<
T extends Object> ({String? dependencyName}) → Future< T> - Method used to get dependency async
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerFactory<
T extends Object> (CDependencyInjectorBuilder< T> builder, {String? dependencyName}) → void - Method used to register dependency by factory
-
registerFactoryAsync<
T extends Object> (CDependencyInjectorAsyncBuilder< T> builder, {String? dependencyName}) → void - Method used to register dependency async
-
registerLazySingleton<
T extends Object> (CDependencyInjectorBuilder< T> builder, {String? dependencyName}) → void - Method used to register dependency by lazy
-
registerSingleton<
T extends Object> (T value, {String? dependencyName}) → void - Method used to register singleton dependency
-
registerSingletonAsync<
T extends Object> (CDependencyInjectorAsyncBuilder< T> builder, {String? dependencyName}) → void - Method used to register dependency async
-
reset(
{bool dispose = false}) → Future< void> - Method used to reset dependencies registered
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited