deleteProfileStatus static method

Future<bool?> deleteProfileStatus({
  1. required String id,
  2. required String status,
  3. required bool isCurrentStatus,
})

Deletes a profile status.

This method asynchronously deletes a profile status identified by id, status, and isCurrentStatus. Parameters: The id parameter specifies the unique identifier of the status to be deleted. The status parameter specifies the status message to be deleted. The isCurrentStatus parameter indicates whether the status to be deleted is the current status.

Returns: A Future<bool?> that completes with true if the deletion was successful, false if unsuccessful, or null if an error occurred.

Example usage:

bool? isDeleted = await Mirrorfly.deleteProfileStatus(
  id: "statusId",
  status: "Busy",
  isCurrentStatus: true,
);
if (isDeleted == true) {
  print("Status deleted successfully");
} else {
  print("Failed to delete status");
}

Implementation

static Future<bool?> deleteProfileStatus(
    {required String id,
    required String status,
    required bool isCurrentStatus}) {
  return FlyChatFlutterPlatform.instance
      .deleteProfileStatus(id, status, isCurrentStatus);
}