setMyProfileStatus static method

Future<void> setMyProfileStatus({
  1. required String status,
  2. required String statusId,
  3. required dynamic flyCallBack(
    1. 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);
}