name property
The name of the author who sent the message.
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 name;