id property
Unique identifier of the author, it can be used for customize the message appearance and behavior.
Example:
@override
Widget build(BuildContext context) {
return SfAIAssistView(
messages: <AssistMessage>[
AssistMessage.response(
data: 'Hello, how can I help you today?',
author: const AssistMessageAuthor(
id: '123-001',
name: 'AI Assistant',
),
),
],
);
}
Implementation
@override
final String id;