builder property

  1. @override
WidgetBuilder? builder
final

Optional builder function for creating a custom widget for the suggestion.

Example:

List<AssistMessage> _messages = <AssistMessage>[
  AssistMessage.response(
    suggestions: <AssistMessageSuggestion>[
      AssistMessageSuggestion.builder(
        builder: (context) {
          return Text('State management');
        },
      ),
    ],
  ),
];

Implementation

@override
final WidgetBuilder? builder;