builder property

Widget Function()? builder
final

A function that returns the widget to be displayed. This allows for lazy composition of the widget, improving performance by building the child only when it's actually displayed. It is highly recommended that the widget returned by the builder has a defined Key property. This helps the Flutter engine efficiently identify and update elements in the widget tree during transitions.

Implementation

final Widget Function()? builder;