leaveGroup method

Future<Map> leaveGroup(
  1. String groupID
)

Implementation

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

  return jsObjectToMap(result);
}