See Message.onMessageVisibilityChanged.
final void Function(types.Message, bool visible)? onMessageVisibilityChanged;