updateGroupName method

  1. @override
Future<bool?> updateGroupName(
  1. String jid,
  2. String name
)
override

Implementation

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