ChatMessageWidget constructor

ChatMessageWidget({
  1. Key? key,
  2. required String message,
  3. required bool isAI,
  4. String? time,
  5. required Color bgColor,
})

Implementation

ChatMessageWidget({Key? key, required this.message, required this.isAI, String? time, required this.bgColor})
    : time = time ?? DateFormat('dd/MM/yyyy HH:mm').format(DateTime.now()).toUpperCase(),
      super(key: key);