instance_manager library

Get Instance Manager is a modern and intelligent dependency injector that injects and removes dependencies seasonally.

Classes

BindingsInterface<T>
Defines a contract for classes that provide dependencies for a specific type T.
Engine
A utility class for accessing the engine instance.
GetInterface
A contract defining the interface for interacting with the "Get" class, enabling auxiliary packages to extend its functionality 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
A class that holds information about an instance.

Enums

SmartManagement
Refreshed by default disposes unused controllers from memory, Through different behaviors.

Mixins

GetLifeCycleMixin
The GetLifeCycleMixin
GetxServiceMixin
Allow track difference between GetxServices and GetxControllers

Extensions

InstanceExtension on GetInterface
Extension on GetInterface providing a convenient method to find instances of type T.
ResetInstance on GetInterface
Extension on GetInterface providing a method to reset all registered instances.

Properties

Get → _GetImpl
Global instance of GetX controller.
final

Functions

ambiguate<T>(T? value) → T?
Allows a value of type T or T? to be treated as a value of type T?.
defaultLogWriterCallback(String value, {bool isError = false}) → void
The default logger function used by Refreshed for writing logs.

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 current BuildContext.
LogWriterCallback = void Function(String text, {bool isError})
A typedef representing a callback function for writing logs, typically used in the context of Refreshed.
ValueUpdater<T> = T Function()
A function type representing a value updater.