placeholderBuilder property
A callback function creates a widget to display initially or top of all messages.
@override
Widget build(BuildContext context) {
return SfAIAssistView(
placeholderBuilder:
(BuildContext context) {
return Center(child: Text('No messages yet'));
},
);
}
See also:
- placeholderBehavior, to control the visibility of the placeholder.
Implementation
final WidgetBuilder? placeholderBuilder;