DefaultMessageWidget constructor

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

Implementation

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