addJavaScriptChannel method
Adds a new JavaScript channel to the set of enabled channels.
Implementation
@override
Future<void> addJavaScriptChannel(
JavaScriptChannelParams javaScriptChannelParams,
) async {
controller.addJavaScriptChannel(
javaScriptChannelParams.name,
onMessageReceived: javaScriptChannelParams.onMessageReceived,
);
}