clearCache method

Future<void> clearCache()

Implementation

Future<void> clearCache() async {
  final res = await promiseToFutureAsMap(
    jsInvokeMethod("clearCache", null, null),
  );

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

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