timestampFormat property

DateFormat? timestampFormat
final

Customizes the format for displaying the timestamp of the message.

Defaults to null.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingBubbleSettings: ChatBubbleSettings(
      timestampFormat: DateFormat('hh:mm a'),
    ),
    outgoingBubbleSettings: ChatBubbleSettings(
      timestampFormat: DateFormat('hh:mm a'),
    ),
  );
}

Implementation

final DateFormat? timestampFormat;