renderPlatformReach function
Warns when the platform wouldn't deliver a link the app just routed.
The app never sees the scheme, so this is the one half deeplink can
only answer from the project's own iOS and Android config.
Implementation
void renderPlatformReach(
LiveBlock block,
Object? link,
PlatformLinks platform,
) {
final String? scheme = Uri.tryParse('$link')?.scheme;
if (scheme == null || scheme.isEmpty || platform.isEmpty) return;
if (platform.accepts(scheme)) return;
block.warning(
'Routed in the app, but "$scheme" isn\'t declared in this project. '
'A real link with that scheme wouldn\'t reach it'
'${platform.schemes.isEmpty ? '' : ' (declared: ${platform.schemes.join(', ')})'}.',
);
}