rive_script_fetch library

Network access for scripts' fetch(). Editor-only: the native symbols are excluded from flutter_runtime builds, so this library must never be imported from runtime code paths.

Functions

setScriptFetchEnabled(bool enabled, {Uri? webProxy}) → bool
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.