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,
    });
    LogMessage.d("create group Response ", " $response");
    return response;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}