ChatScreen constructor

const ChatScreen({
  1. Key? key,
  2. Widget? fab,
  3. Duration messageGroupDistance = const Duration(minutes: 5),
  4. int? maxMessageLength,
  5. bool gutter = false,
  6. Widget? header,
  7. CrossAxisAlignment avatarAlignment = CrossAxisAlignment.start,
  8. String placeholder = "Send a message",
  9. int? streamBuffer,
  10. ChatStyle? style,
  11. Iterable<MenuItem> onMessageMenu(
    1. AbstractChatMessage message
    )?,
  12. ValueChanged<AbstractChatMessage>? onMessageTap,
  13. String messageTimeFormatter(
    1. DateTime
    ) = _formatTime,
  14. required ChatProvider provider,
  15. required String sender,
})

Implementation

const ChatScreen(
    {super.key,
    this.fab,
    this.messageGroupDistance = const Duration(minutes: 5),
    this.maxMessageLength,
    this.gutter = false,
    this.header,
    this.avatarAlignment = CrossAxisAlignment.start,
    this.placeholder = "Send a message",
    this.streamBuffer,
    this.style,
    this.onMessageMenu,
    this.onMessageTap,
    this.messageTimeFormatter = _formatTime,
    required this.provider,
    required this.sender});