DefaultMessageWidget constructor

const DefaultMessageWidget({
  1. required GlobalKey<State<StatefulWidget>> key,
  2. required MessageModel message,
  3. String? fontFamily,
  4. double fontSize = 16,
  5. double avatarSize = 40,
  6. Color? textColor,
  7. Color? backgroundColor,
  8. MessageWidgetBuilder? messageWidget,
  9. OnBubbleClick? onBubbleTap,
  10. OnBubbleClick? onBubbleLongPress,
})

Implementation

const DefaultMessageWidget({
  required GlobalKey key,
  required this.message,
  this.fontFamily,
  this.fontSize = 16,
  this.avatarSize = 40,
  this.textColor,
  this.backgroundColor,
  this.messageWidget,
  this.onBubbleTap,
  this.onBubbleLongPress,
}) : super(key: key);