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

hashCode int
The hash code for this object.
no setterinherited
injector CInjector
Use to get injector
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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