NativeBridgeController constructor

NativeBridgeController(
  1. WebViewController controller
)

Implementation

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