ChatConfiguration constructor

const ChatConfiguration({
  1. ChatAlignment senderAlignment = ChatAlignment.end,
  2. Widget newReceiveMessageNotificationBuilder(
    1. BuildContext,
    2. Message,
    3. ChatController
    )?,
  3. BubbleConfiguration bubbleConfiguration = const BubbleConfiguration(),
  4. Widget? readOnlyWidget,
  5. double newMessageScrollThreshold = 300,
  6. Widget dateSeparatorBuilder(
    1. BuildContext context,
    2. String name
    )?,
  7. TextStyle? dateSeparatorStyle,
  8. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 30),
  9. Duration? messageAppearAnimationDuration,
  10. bool messagesStartAtTop = false,
})

Creates a ChatConfiguration.

Implementation

const ChatConfiguration({
  this.senderAlignment = ChatAlignment.end,
  this.newReceiveMessageNotificationBuilder,
  this.bubbleConfiguration = const BubbleConfiguration(),
  this.readOnlyWidget,
  this.newMessageScrollThreshold = 300,
  this.dateSeparatorBuilder,
  this.dateSeparatorStyle,
  this.padding = const EdgeInsets.symmetric(horizontal: 30),
  this.messageAppearAnimationDuration,
  this.messagesStartAtTop = false,
});