DevMPJSHost constructor
DevMPJSHost()
Implementation
DevMPJSHost() {
IsolateDevServer.shared.eventListenner = (method, params) {
if (method == _MPJSMethodList.callDartFunction) {
final funcCallId = params["funcCallId"] as String;
final funcRef = params["funcRef"] as String;
final args = params["args"] as List<dynamic>;
onCallDartFunction?.call(funcCallId, funcRef, args);
}
};
}