onDeleteFailedMessage property
Called when the delete button on a failed message is tapped.
The chat knows nothing about your backend, so delete the message there
and return true to also remove it from the list, or false to keep
it. When null, the message is removed from the list immediately.
Implementation
final Future<bool> Function(Message)? onDeleteFailedMessage;