setScriptFetchEnabled function
Gives scripts' fetch() this platform's network transport, or takes it away, for every script VM in the process. Returns whether scripts can reach the network now: false once disabled, and on platforms without a transport yet, where fetch() keeps rejecting with "disabled". Apple platforms and Windows have one; Linux does not yet.
webProxy is the proxy page web builds send requests through; desktop
builds ignore it.
Implementation
bool setScriptFetchEnabled(bool enabled, {Uri? webProxy}) =>
_setEnabled?.call(enabled) ?? false;