NativeBridgeController constructor
NativeBridgeController(
- WebViewController controller
Implementation
NativeBridgeController(this.controller) {
controller
..setJavaScriptMode(JavaScriptMode.unrestricted)
..addJavaScriptChannel(
name,
onMessageReceived: onMessageReceived,
);
}