newReceiveMessageNotificationBuilder property

Widget Function(BuildContext, Message, ChatController)? newReceiveMessageNotificationBuilder
final

Builds a "new message" notification shown at the bottom of the chat when a receiver message arrives while the user has scrolled up.

Receives the new message and the ChatController (e.g. to call ChatController.scrollToBottom on tap). When the user is within newMessageScrollThreshold of the bottom, the chat scrolls down automatically instead. When null, this feature is disabled.

Implementation

final Widget Function(BuildContext, Message, ChatController)?
newReceiveMessageNotificationBuilder;