Cubes class
Core of the package where you will have useful functions and settings
Constructors
- Cubes()
-
Factory to get instance of the Cubes
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get<
T extends Object> ({String? dependencyName}) → T - Use to get dependency registered
-
getAsync<
T extends Object> ({String? dependencyName}) → Future< T> - Use to get dependency registered by async
-
of<
C extends Cube> (BuildContext context) → C? - Use to get Cube registered in de Widget tree.
-
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 -
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 -
resetInjector(
) → void - Use to reset injector