defineFetchExportFactoryWithEnvironmentAsync function
Never
defineFetchExportFactoryWithEnvironmentAsync(
- String runtime,
- Future<
Engine> engineFactory(- Object? environment
- required RoutedNodeCapabilities capabilities,
- String name = '__routed_fetch__',
VM stub for a lazy Fetch export that receives the host environment.
Implementation
Never defineFetchExportFactoryWithEnvironmentAsync(
String runtime,
Future<Engine> Function(Object? environment) engineFactory, {
required RoutedNodeCapabilities capabilities,
String name = '__routed_fetch__',
}) {
throw UnsupportedError('$runtime Fetch exports require a JavaScript host.');
}