editTextMessage static method
Future<void>
editTextMessage({
- required EditMessageParams editMessageParams,
- required dynamic flyCallback(
- FlyResponse response
A method used to edit a text message sent previously.
Parameters:
The editMessageParams
: An object containing parameters required for editing the message.
The flyCallback
: A callback function to handle the response from the editTextMessage.
Example usage:
await Mirrorfly.editTextMessage(
editMessageParams: editMessageParams,
flyCallback: (FlyResponse response) {
if (response.isSuccess) {
print('Message Edited successfully');
} else {
print('Failed to edit message: ${response.errorMessage}');
}
},
);
Implementation
static Future<void> editTextMessage(
{required EditMessageParams editMessageParams,
required Function(FlyResponse response) flyCallback}) {
return FlyChatFlutterPlatform.instance.editTextMessage(
editMessageParams: editMessageParams, callback: flyCallback);
}