content property

Widget content
final

Holds the widget to display as the content of a toolbar item, and it can be any type of widget.

Example:

List<AssistMessage> _messages = <AssistMessage>[
  AssistMessage.response(
    data: responseText,
    toolbarItems: <AssistMessageToolbarItem>[
      const AssistMessageToolbarItem(
        content: Icon(Icons.thumb_up_outlined),
      ),
    ],
  )
];

Implementation

final Widget content;