RouteLens<GlobalState, RouteState, LocalState> typedef
RouteLens<GlobalState, RouteState, LocalState> = ({LocalState Function(GlobalState global, RouteState route) get, (GlobalState, RouteState) Function(GlobalState global, RouteState route, LocalState local) set})
A lens that operates on state composed from both a GlobalState and a
RouteState.
Used in navigation scenarios where the local state depends on both the app state and the current route state.
Implementation
typedef RouteLens<GlobalState, RouteState, LocalState> = ({
LocalState Function(GlobalState global, RouteState route) get,
(GlobalState, RouteState) Function(
GlobalState global,
RouteState route,
LocalState local,
) set,
});