open method
Implementation
Future<dynamic> open() async {
final res = await promiseToFutureAsMap(jsInvokeMethod("init", null, null));
if (res == null) throw Exception("no data received from js");
if (res["error"] != null) throw Exception(res["error"]);
isOpen = true;
return res["result"];
}