onDeleteFailedMessage property

Future<bool> Function(Message)? onDeleteFailedMessage
final

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;