builder property

Widget Function(bool elevated) builder
final

Builder function that creates the widget's content.

This function is called with a boolean parameter elevated that indicates whether the widget is currently in an elevated state. This allows you to modify the widget's appearance based on its elevation state.

The builder is called twice internally - once for the regular widget tree and once for the overlay, but only one version is visible at a time.

Implementation

// ignore: avoid_positional_boolean_parameters
final Widget Function(bool elevated) builder;