Chat constructor
const
Chat({
- Key? key,
- Widget buildCustomMessage(
- Message,
- MessageContainBaseBuild
- Widget buildListContentContain(
- Widget chatList
- String customDateHeaderText()?,
- DateFormat? dateFormat,
- String? dateLocale,
- bool? disableImageGallery,
- bool? isAttachmentUploading,
- bool? isLastPage,
- ChatL10n l10n = const ChatL10nEn(),
- required List<
Message> messages, - void onAttachmentPressed()?,
- Future<
void> onEndReached()?, - double? onEndReachedThreshold,
- void onMessageLongPress(
- Message
- void onMessageTap(
- Message
- void onPreviewDataFetched(
- TextMessage,
- PreviewData
- required void onSendPressed(
- PartialText
- void onTextChanged()?,
- bool showUserAvatars = false,
- bool showUserNames = false,
- ChatTheme theme = const DefaultChatTheme(),
- DateFormat? timeFormat,
- bool usePreviewData = true,
- required User user,
Creates a chat widget
Implementation
const Chat({
Key? key,
this.buildCustomMessage,
this.buildListContentContain,
this.customDateHeaderText,
this.dateFormat,
this.dateLocale,
this.disableImageGallery,
this.isAttachmentUploading,
this.isLastPage,
this.l10n = const ChatL10nEn(),
required this.messages,
this.onAttachmentPressed,
this.onEndReached,
this.onEndReachedThreshold,
this.onMessageLongPress,
this.onMessageTap,
this.onPreviewDataFetched,
required this.onSendPressed,
this.onTextChanged,
this.showUserAvatars = false,
this.showUserNames = false,
this.theme = const DefaultChatTheme(),
this.timeFormat,
this.usePreviewData = true,
required this.user,
}) : super(key: key);