renewToken method

Future<Map> renewToken(
  1. String token
)

Implementation

Future<Map<dynamic, dynamic>> renewToken(String token) async {
  var result = await promiseToFuture(ZIM.getInstance()!.renewToken(token))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}