setPluginHandler function
- PlatformMessageCallback handler
Sets the handler that forwards platform messages to web plugins.
This function exists because unlike mobile, on the web plugins are also implemented using Dart code, and that code needs a way to receive messages.
Implementation
void setPluginHandler(ui.PlatformMessageCallback handler) {
pluginMessageCallHandler = handler;
}