joinGroup method

Future<Map> joinGroup(
  1. String groupID
)

Implementation

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

  Map resultMap = jsObjectToMap(result);

  return resultMap;
}