buildColumnPlaceholder method Null safety

WidgetPlaceholder? buildColumnPlaceholder(
  1. BuildMetadata meta,
  2. Iterable<WidgetPlaceholder> children
)

Builds column placeholder.

Implementation

WidgetPlaceholder? buildColumnPlaceholder(
  BuildMetadata meta,
  Iterable<WidgetPlaceholder> children,
) {
  if (children.isEmpty) {
    return null;
  }
  if (children.length == 1) {
    return children.first;
  }

  return ColumnPlaceholder(
    children: children,
    meta: meta,
    wf: this,
  );
}