getKeys method

Future<List> getKeys()

Implementation

Future<List<dynamic>> getKeys() async {
  final res = await promiseToFutureAsMap(
    jsInvokeMethod("getAllKeys", null, null),
  );

  if (res == null) throw Exception("no data recived from js");

  if (res["error"] != null) throw Exception(res["error"]);

  return res["result"];
}