WidgetPlaceholder<T> constructor Null safety

WidgetPlaceholder<T>(
  1. T generator,
  2. {bool autoUnwrap = true,
  3. Widget? child,
  4. Key? key}
)

Creates a widget builder.

Implementation

WidgetPlaceholder(
  this.generator, {
  bool autoUnwrap = true,
  Widget? child,
  Key? key,
})  : _autoUnwrap = autoUnwrap,
      _firstChild = child,
      super(key: key);