controller property
set
controller
(WebViewController controller)
Implementation
set controller(WebViewController controller) {
tblBridge = TBLBridge(controller);
controller.addJavaScriptChannel(flutterBridge,
onMessageReceived: (JavaScriptMessage result) {
Map<String, dynamic> messageMap = jsonDecode(result.message);
String action = messageMap[actionKey];
String promiseId = messageMap[promiseIdKey];
List parameters = messageMap[parametersKey];
_callNativeFunctionFromJS(action, promiseId, parameters);
});
}