placeholderBuilder property

WidgetBuilder? placeholderBuilder
final

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:

Implementation

final WidgetBuilder? placeholderBuilder;