build method

Widget build([
  1. dynamic item1,
  2. dynamic item2,
  3. dynamic item3,
  4. dynamic item4,
  5. dynamic item5,
  6. dynamic item6,
  7. dynamic item7,
  8. dynamic item8,
  9. dynamic item9,
  10. dynamic item10,
])

Implementation

Widget build([item1, item2, item3, item4, item5, item6, item7, item8, item9, item10]) {
  final items = [];
  [item1, item2, item3, item4, item5, item6, item7, item8, item9, item10].forEach((element) {
    if (element == null) return;
    if (element is Iterable) {
      items.addAll(element);
    } else {
      items.add(element);
    }
  });
  return applyTo(items, this._layout);
}