TextMessage constructor
const
TextMessage({
- Key? key,
- required EmojiEnlargementBehavior emojiEnlargementBehavior,
- required bool hideBackgroundOnEmojiMessages,
- required TextMessage message,
- Widget nameBuilder(
- User
- void onPreviewDataFetched(
- TextMessage,
- PreviewData
- TextMessageOptions options = const TextMessageOptions(),
- required bool showName,
- required bool usePreviewData,
- 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,
});