exampleData property

List<ExampleBuilderCallback> exampleData
final

A list of builder functions that each return a JSON string representing an example usage of this widget.

Each returned string must be a valid JSON representation of a list of component objects. For the example to be renderable, one of the components in the list must have the id 'root', which will be used as the entry point for rendering.

To catch real data returned by the AI for debugging or creating new examples, configure logging to Level.ALL and search for the string "definition": { in the logs.

Implementation

final List<ExampleBuilderCallback> exampleData;