timestampFormat property
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
@override
final DateFormat? timestampFormat;