DateTimeWidget constructor

const DateTimeWidget({
  1. Key? key,
  2. required ChatMessage message,
  3. TextStyle? sendDateTextStyle,
})

Creates a DateTimeWidget.

  • message: the chat message whose timestamp will be displayed.
  • sendDateTextStyle: custom text style for the timestamp.

Implementation

const DateTimeWidget({
  Key? key,
  required this.message,
  this.sendDateTextStyle,
}) : super(key: key);