isSelected property
To indicates whether a toolbar item is currently selected or not.
Defaults to false
.
Example:
List<AssistMessage> _messages = <AssistMessage>[
AssistMessage.response(
data: responseText,
toolbarItems: <AssistMessageToolbarItem>[
const AssistMessageToolbarItem(
content: Icon(Icons.thumb_up_outlined),
isSelected: true,
),
],
)
];
Implementation
final bool isSelected;