updateGroupProfileImage method

  1. @override
Future<bool?> updateGroupProfileImage(
  1. String jid,
  2. String file
)
override

Implementation

@override
Future<bool?> updateGroupProfileImage(String jid, String file) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>(
        'updateGroupProfileImage', {"jid": jid, "file": file});
    debugPrint("updateGroupProfileImage Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    return false;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    return false;
  }
}