insertDefaultStatus static method
Inserts a default status.
This method asynchronously inserts a default status into the Mirrorfly platform.
The status
parameter is required and specifies the status message to be inserted.
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.insertDefaultStatus(status: "Available");
if (isInserted == true) {
print("Default status inserted successfully");
} else {
print("Failed to insert default status");
}
Implementation
static Future<bool?> insertDefaultStatus({required String status}) {
return FlyChatFlutterPlatform.instance.insertDefaultStatus(status);
}