instance_manager library
Get Instance Manager is a modern and intelligent dependency injector that injects and removes dependencies seasonally.
Classes
- Bindings
-
Bindings should be extended or implemented.
When using
GetMaterialApp
, allGetPage
s and navigation methods (like Get.to()) have abinding
property that takes an instance of Bindings to manage the dependencies() (via Get.put()) for the Route you are opening. -
BindingsInterface<
T> - Engine
- GetInterface
- GetInterface allows any auxiliary package to be merged into the "Get" class through extensions
- GetxService
- Unlike GetxController, which serves to control events on each of its pages, GetxService is not automatically disposed (nor can be removed with Get.delete()). It is ideal for situations where, once started, that service will remain in memory, such as Auth control for example. Only way to remove it is Get.reset().
- InstanceInfo
Enums
- SmartManagement
- GetX by default disposes unused controllers from memory, Through different behaviors. SmartManagement.full SmartManagement.full is the default one. Dispose classes that are not being used and were not set to be permanent. In the majority of the cases you will want to keep this config untouched. If you new to GetX then don't change this. SmartManagement.onlyBuilder only controllers started in init: or loaded into a Binding with Get.lazyPut() will be disposed. If you use Get.put() or Get.putAsync() or any other approach, SmartManagement will not have permissions to exclude this dependency. With the default behavior, even widgets instantiated with "Get.put" will be removed, unlike SmartManagement.onlyBuilders. SmartManagement.keepFactoryJust like SmartManagement.full, it will remove it's dependencies when it's not being used anymore. However, it will keep their factory, which means it will recreate the dependency if you need that instance again.
Mixins
- GetLifeCycleMixin
-
The
GetLifeCycle
- GetxServiceMixin
- Allow track difference between GetxServices and GetxControllers
Extensions
Properties
- Get → _GetImpl
-
final
Functions
-
ambiguate<
T> (T? value) → T? - This allows a value of type T or T? to be treated as a value of type T?.
-
defaultLogWriterCallback(
String value, {bool isError = false}) → void - default logger from GetX
Typedefs
-
AsyncInstanceBuilderCallback<
S> = Future< S> Function() - BindingBuilderCallback = void Function()
-
InstanceBuilderCallback<
S> = S Function() -
InstanceCreateBuilderCallback<
S> = S Function(BuildContext _) - LogWriterCallback = void Function(String text, {bool isError})
- VoidCallback from logs
-
ValueUpdater<
T> = T Function()