ChatMsg constructor

const ChatMsg({
  1. Key? key,
  2. required String msg,
  3. required bool isUser,
  4. required Color botMsgBgColor,
  5. required Icon botIcon,
  6. required Color userMsgBgColor,
  7. required Icon userIcon,
  8. TextStyle? msgStyle,
  9. Widget? msgTime,
  10. bool? isTyping,
  11. Widget? typing,
})

Constructs a ChatMsg widget.

Implementation

const ChatMsg({
  super.key,
  required this.msg,
  required this.isUser,
  required this.botMsgBgColor,
  required this.botIcon,
  required this.userMsgBgColor,
  required this.userIcon,
  this.msgStyle,
  this.msgTime,
  this.isTyping,
  this.typing,
});