ChildBuilder constructor

const ChildBuilder({
  1. Key? key,
  2. ChildWidgetBuilder? builder,
  3. required Widget child,
})

A builder that can be used to wrap or otherwise customize child widgets. The builder parameter is optional.

When performing a build, if the builder is not set, this will immediately return the assigned child. When the builder is set, this will pass the child to the builder and return the result.

Implementation

const ChildBuilder({
  super.key,
  this.builder,
  required this.child,
});