wrapWith method Null safety

WidgetPlaceholder<T> wrapWith(
  1. Widget? builder(
    1. BuildContext context,
    2. Widget child
    )
)

Enqueues builder to be built later.

Implementation

WidgetPlaceholder<T> wrapWith(
  Widget? Function(BuildContext context, Widget child) builder,
) {
  _builders.add(builder);
  return this;
}