GSInterface class abstract
GetInterface allows any auxiliary package to be merged into the "Get" class through extensions
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLogEnable ↔ bool
-
getter/setter pair
- log ↔ LogWriterCallback
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smartManagement ↔ SmartManagement
-
getter/setter pair
Methods
-
asap<
T> (T computation(), {bool condition()?}) → FutureOr< T> -
Available on GSInterface, provided by the LoopEventsExt extension
-
call<
T> () → T -
Available on GSInterface, provided by the GControllerExt extension
-
create<
S> (InstanceBuilderCallback< S> builder, {String? tag, bool permanent = true}) → void -
Available on GSInterface, provided by the GControllerExt extension
Creates a new Class InstanceSfrom the builder callbackS. Every time find<S>() is used, it calls the builder method to generate a new InstanceS. It also registers eachinstance.onClose()with the current RouteGet.referenceto keep the lifecycle active. Is important to know that the instances created are only stored per Route. So, if you callGet.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 -
Available on GSInterface, provided by the GControllerExt extension
Delete registered Class InstanceS(ortag) and, closes any open controllersDisposableInterface, cleans up the memory -
deleteAll(
{bool force = false}) → void -
Available on GSInterface, provided by the GControllerExt extension
Delete all registered Class Instances and, closes any open controllersDisposableInterface, cleans up the memory -
find<
S> ({String? tag}) → S -
Available on GSInterface, provided by the GControllerExt extension
Finds the registered type <S> (ortag) In case of using Get.create to register a type <S> ortag, it will create an instance each time you call find. If the registered type <S> (ortag) is a Controller, it will initialize it's lifecycle. -
getInstanceInfo<
S> ({String? tag}) → InstanceInfo -
Available on GSInterface, provided by the GControllerExt extension
-
isPrepared<
S> ({String? tag}) → bool -
Available on GSInterface, provided by the GControllerExt extension
Checks if a lazy factory callbackGet.lazyPut()that returns an Instance<S> is registered in memory. -
isRegistered<
S> ({String? tag}) → bool -
Available on GSInterface, provided by the GControllerExt extension
Check if a Class Instance<S> (ortag) is registered in memory. -
lazyPut<
S> (InstanceBuilderCallback< S> builder, {String? tag, bool? fenix, bool permanent = false}) → void -
Available on GSInterface, provided by the GControllerExt extension
Creates a new Instancelazily from the<S>builder()callback. -
lazyReplace<
P> (InstanceBuilderCallback< P> builder, {String? tag, bool? fenix}) → void -
Available on GSInterface, provided by the GControllerExt extension
Replaces a parent instance with a new Instance -
markAsDirty<
S> ({String? tag, String? key}) → void -
Available on GSInterface, provided by the GControllerExt extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put<
S> (S dependency, {String? tag, bool permanent = false}) → S -
Available on GSInterface, provided by the GControllerExt extension
-
putOrFind<
S> (InstanceBuilderCallback< S> dep, {String? tag}) → S -
Available on GSInterface, provided by the GControllerExt extension
-
reload<
S> ({String? tag, String? key, bool force = false}) → void -
Available on GSInterface, provided by the GControllerExt extension
-
reloadAll(
{bool force = false}) → void -
Available on GSInterface, provided by the GControllerExt extension
-
replace<
P> (P child, {String? tag}) → void -
Available on GSInterface, provided by the GControllerExt extension
Replace a parent instance of a class in dependency management with achildinstance -
reset(
{bool clearRouteBindings = true}) → void -
Available on GSInterface, provided by the GControllerExt extension
-
resetInstance(
{bool clearRouteBindings = true}) → bool -
Available on GSInterface, provided by the GControllerResetExt extension
Clears all registered instances (and/or tags). Even the persistent ones. This should be used at the end or tearDown of unit tests. -
toEnd<
T> (FutureOr< T> computation()) → Future<T> -
Available on GSInterface, provided by the LoopEventsExt extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited