ScreenScopeResolver typedef
ScreenScopeResolver =
Map<String, Object?> Function(ScreenScopeRequest request)
Supplies the data of one screen from its navigation parameters.
The renderer knows neither what itemId is nor where a record comes from: it only knows
that a screen has an ENTRY and asks the host which values that entry means. Otherwise an
entity dictionary would have to be hard-wired into the renderer.
Return a nested map ({'item': {...}}) or a flat one
({'item.name': ...}; ScreenData reads both); return an empty map to supply nothing.
Called on every build, so data that arrives after the navigation still reaches the
open screen.
Implementation
typedef ScreenScopeResolver = Map<String, Object?> Function(ScreenScopeRequest request);