get_instance/get_instance library
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> -
Defines a contract for classes that provide dependencies for a specific type
T
. - 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
- A class that holds information about an instance.
Mixins
- GetLifeCycleMixin
-
The
GetLifeCycle
- GetxServiceMixin
- Allow track difference between GetxServices and GetxControllers
Extensions
- Inst on GetInterface
- ResetInstance on GetInterface
- Extension on GetInterface providing a method to reset all registered instances.
Typedefs
-
AsyncInstanceBuilderCallback<
S> = Future< S> Function() -
A callback function used to asynchronously construct instances of type
S
. - BindingBuilderCallback = void Function()
- Defines the signature for a callback used to build bindings.
-
InstanceBuilderCallback<
S> = S Function() -
A callback function used to construct instances of type
S
. -
InstanceCreateBuilderCallback<
S> = S Function(BuildContext _) -
A callback function used to construct instances of type
S
with access to the currentBuildContext
.