defaultOverlayHost function
Standard render-mechanics wiring: the engine over registry (defaults to
the registry singleton — zero-config).
The only public entry into render mechanics, for HintController:
final controller = HintController(overlayHostBuilder: defaultOverlayHost());
The engine itself and its internals (scrim, placement delegate) stay hidden: they can change without breaking, while this contract is stable.
Implementation
HintOverlayHost Function(HintController) defaultOverlayHost({
HintTargetRegistry? registry,
}) {
return (controller) => HintOverlayEngine(
registry: registry ?? HintTargetRegistry.defaultInstance,
input: controller,
);
}