time property

  1. @override
DateTime? time
final

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;