create static method
Implementation
static Future<void> create(String handle, dynamic appConfig) async {
Object _appConfig = mapToJSObj(appConfig);
ZIM? zim = ZIM.create(_appConfig);
if (zim != null) {
handleMap[handle] = zim;
} else if (handleMap.isNotEmpty) {
handleMap[handle] = handleMap.values.first;
}
ZIM.setEventHandler(allowInterop((dynamic zim, event, String data) {
String handle = getHandle(zim);
_evenController.add({'handle': handle, 'ev': event, 'data': data});
}));
return Future.value();
}