GetInstance class Null safety




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


call<T>() → T
create<S>(InstanceBuilderCallback<S> builder, {String? tag, bool permanent = true}) → void
Creates a new Class Instance S from the builder callbackS. Every time find<S>() is used, it calls the builder method to generate a new Instance S. It also registers each instance.onClose() with the current Route Get.reference to keep the lifecycle active. Is important to know that the instances created are only stored per Route. So, if you call Get.delete<T>() the "instance factory" used in this method (Get.create<T>()) will be removed, but NOT the instances already created by it. [...]
delete<S>({String? tag, String? key, bool force = false}) bool
Delete registered Class Instance S (or tag) and, closes any open controllers DisposableInterface, cleans up the memory [...]
deleteAll({bool force = false}) → void
Delete all registered Class Instances and, closes any open controllers DisposableInterface, cleans up the memory [...]
find<S>({String? tag}) → S
Finds the registered type <S> (or tag) In case of using Get.create to register a type <S> or tag, it will create an instance each time you call find. If the registered type <S> (or tag) is a Controller, it will initialize it's lifecycle.
getInstanceInfo<S>({String? tag}) InstanceInfo
injector<S>(InjectorBuilderCallback<S> fn, {String? tag, bool fenix = false}) → void
isPrepared<S>({String? tag}) bool
Checks if a lazy factory callback Get.lazyPut() that returns an Instance<S> is registered in memory. [...]
isRegistered<S>({String? tag}) bool
Check if a Class Instance<S> (or tag) is registered in memory. [...]
lazyPut<S>(InstanceBuilderCallback<S> builder, {String? tag, bool? fenix, bool permanent = false}) → void
Creates a new Instance lazily from the <S>builder() callback. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
printInstanceStack() → void
put<S>(S dependency, {String? tag, bool permanent = false, InstanceBuilderCallback<S>? builder}) → S
Injects an instance <S> in memory to be globally accessible. [...]
putAsync<S>(AsyncInstanceBuilderCallback<S> builder, {String? tag, bool permanent = false}) Future<S>
async version of Get.put(). Awaits for the resolution of the Future from builder() parameter and stores the Instance returned.
putOrFind<S>(InstanceBuilderCallback<S> dep, {String? tag}) → S
reload<S>({String? tag, String? key, bool force = false, bool closeInstance = true}) → void
reloadAll({bool force = false}) → void
reloadDependencyByRoute(String routeName) → void
removeDependencyByRoute(String routeName) → void
Clears from memory registered Instances associated with routeName when using Get.smartManagement as SmartManagement.full or SmartManagement.keepFactory Meant for internal usage of GetPageRoute and GetDialogRoute
reset({bool clearFactory = true, bool clearRouteBindings = true}) bool
Clears all registered instances (and/or tags). Even the persistent ones. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]