setJsExecutorInstance function
- @Deprecated('Use JsExecutorRegistry.register() instead')
- dynamic instance
Backward compatibility shim for old JS executor API
Deprecated: Use JsExecutorRegistry.register instead.
This function provides backward compatibility for code using the old global JS executor pattern. New code should use the registry directly:
// Old (deprecated, but still works)
setJsExecutorInstance(FlutterJsExecutor());
// New (preferred)
JsExecutorRegistry.register(FlutterJsExecutor());
This function will be removed in a future major version.
Implementation
@Deprecated('Use JsExecutorRegistry.register() instead')
void setJsExecutorInstance(dynamic instance) {
JsExecutorRegistry.register(instance);
}