flutter_route_guard library
A platform-agnostic Flutter package for guarding routes based on asynchronous state.
This package provides RouteGuard for widget-based route protection and BaseAsyncValue for representing asynchronous authentication or feature states.
Classes
-
BaseAsyncData<
T> - Represents the data state.
-
BaseAsyncError<
T> - Represents the error state.
-
BaseAsyncLoading<
T> - Represents the loading state.
-
BaseAsyncValue<
T> - RouteGuard
- A widget that guards a route based on the provided state.