RouterReportManager<T> class

Manages the routing and memory management for instances associated with routes in GetX.

This class handles the tracking and disposal of instances linked to specific routes in a GetX application. It is particularly useful when managing the lifecycle of instances created with Get.create() and associated with specific routes.

Instances of this class can be accessed via the static instance getter. It provides methods to report route changes, link dependencies to routes, and dispose of instances when routes are removed from memory.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appendRouteByCreate(GetLifeCycleMixin i) → void
Appends a route by its created instance.
clearRouteKeys() → void
Clears all route keys and dependencies from memory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printInstanceStack() → void
Prints the current instance stack for debugging purposes.
reportCurrentRoute(T newRoute) → void
reportDependencyLinkedToRoute(String dependencyKey) → void
Links a dependency to the current route.
reportRouteDispose(T disposed) → void
Reports the disposal of a route.
reportRouteWillDispose(T disposed) → void
Reports the impending disposal of a route.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance RouterReportManager
Retrieves the singleton instance of RouterReportManager.
no setter

Static Methods

dispose() → void
Disposes of the singleton instance of RouterReportManager.