applyTo method

Widget applyTo(
  1. Iterable items,
  2. Layout builder
)

Implementation

Widget applyTo(Iterable items, Layout builder) {
  final space = builder.space(_spacing, this);
  final widgets = divide(
    items.notNull().map((item) {
      return _useFlex == true ? Flexible(flex: 1, child: autoWidget(item)) : autoWidget(item);
    }),
    space,
  );
  var fromLayout = builder.wrapWidgets(widgets, this);
  return applyWrappers(fromLayout);
}