route_lifecycle_detector library

Classes

RouteLifecycle
The current lifecycle state of a Route (such as Scaffold, Dialog, etc.). It is simpler than Android's Lifecycle because it is determined only by the current information.
RouteLifecycleDetector
Detects the lifecycle of a Route (such as Scaffold, Dialog, etc.).

Extensions

BuildContextRouteLifecycleExtensions on BuildContext
Extensions for BuildContext to detect the lifecycle of a Route.
RouteLifecyclePatterns on RouteLifecycle
Adds pattern-matching-related methods to RouteLifecycle.

Exceptions / Errors

BadLifecycleException
Exception thrown when the route lifecycle is invalid.