time property
Timestamp when the message was sent.
It is used to store a timestamp value of the message has been sent.
Example:
@override
Widget build(BuildContext context) {
return SfAIAssistView(
messages: <AssistMessage>[
AssistMessage.response(
data: 'Hello, how can I help you today?',
time: DateTime.now(),
),
],
);
}
Implementation
@override
final DateTime? time;