setMyProfileStatus static method
Future<void>
setMyProfileStatus({
- required String status,
- required String statusId,
- required dynamic flyCallBack(
- FlyResponse response
Sets the user's profile status.
Parameters:
status
- The new status message to set.
statusId
- The ID of the status to be updated.
flyCallBack
- A callback function that is called with a FlyResponse object upon completion.
Returns: A Future<void> that completes when the operation is finished.
Example usage:
await Mirrorfly.setMyProfileStatus(
status: "Available",
statusId: "status123",
flyCallBack: (response) {
if (response.isSuccess) {
print("Profile status updated successfully");
} else {
print("Failed to update profile status");
}
},
);
Implementation
static Future<void> setMyProfileStatus(
{required String status,
required String statusId,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.setMyProfileStatus(status, statusId, flyCallBack);
}