builder property

  1. @override
WidgetBuilder? builder
final

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

Example:

List<ChatMessage> _messages = <ChatMessage>[
  ChatMessage(
    suggestions: <ChatMessageSuggestion>[
      ChatMessageSuggestion.builder(
        builder: (context) {
          return Text('Paris');
        },
      ),
    ],
  ),
];

Implementation

@override
final WidgetBuilder? builder;