deleteBusyStatus static method
Deletes a busy status.
This method asynchronously deletes a busy status identified by id
, status
, and isCurrentStatus
.
Parameters:
The id
parameter specifies the unique identifier of the busy status to be deleted.
The status
parameter specifies the busy status message to be deleted.
The isCurrentStatus
parameter indicates whether the busy 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.deleteBusyStatus(
id: "busyStatusId",
status: "In a meeting",
isCurrentStatus: true,
);
if (isDeleted == true) {
print("Busy status deleted successfully");
} else {
print("Failed to delete busy status");
}
Implementation
static Future<bool?> deleteBusyStatus(
{required String id,
required String status,
required bool isCurrentStatus}) {
return FlyChatFlutterPlatform.instance
.deleteBusyStatus(id, status, isCurrentStatus);
}