TextMessage constructor

const TextMessage({
  1. Key? key,
  2. required EmojiEnlargementBehavior emojiEnlargementBehavior,
  3. required bool hideBackgroundOnEmojiMessages,
  4. required TextMessage message,
  5. Widget nameBuilder(
    1. User
    )?,
  6. void onPreviewDataFetched(
    1. TextMessage,
    2. PreviewData
    )?,
  7. TextMessageOptions options = const TextMessageOptions(),
  8. required bool showName,
  9. required bool usePreviewData,
  10. String? userAgent,
})

Creates a text message widget from a types.TextMessage class.

Implementation

const TextMessage({
  super.key,
  required this.emojiEnlargementBehavior,
  required this.hideBackgroundOnEmojiMessages,
  required this.message,
  this.nameBuilder,
  this.onPreviewDataFetched,
  this.options = const TextMessageOptions(),
  required this.showName,
  required this.usePreviewData,
  this.userAgent,
});