insertNewProfileStatus static method

Future<bool?> insertNewProfileStatus({
  1. required String status,
})

Inserts a new profile status.

This method adds a new status message to the user's profile on the Mirrorfly platform.

Parameters: status - The status message to add.

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

Example usage:

bool? isInserted = await Mirrorfly.insertNewProfileStatus(status: "Busy");
if (isInserted == true) {
  print("New profile status inserted successfully");
} else {
  print("Failed to insert new profile status");
}

Implementation

static Future<bool?> insertNewProfileStatus({required String status}) {
  return FlyChatFlutterPlatform.instance.insertNewProfileStatus(status);
}