deleteProfileStatus method

  1. @override
Future<bool?> deleteProfileStatus(
  1. String id,
  2. String status,
  3. bool isCurrentStatus
)
override

Deletes a profile status.

Implementation

@override
Future<bool?> deleteProfileStatus(
    String id, String status, bool isCurrentStatus) async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<bool>('deleteProfileStatus', {
      "id": id,
      "status": status,
      "isCurrentStatus": isCurrentStatus,
    });
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}