createGroup method

  1. @override
Future createGroup(
  1. String groupName,
  2. List<String> userJidList,
  3. String imageFilePath
)
override

Implementation

@override
Future<dynamic> createGroup(
    String groupName, List<String> userJidList, String imageFilePath) async {
  dynamic response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod('createGroup', {
      "group_name": groupName,
      "members": userJidList,
      "file": imageFilePath,
    });
    debugPrint("create group Response ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}