nullGenerator<E> static method
Implementation
static List<E> nullGenerator<E>(E Function(int) builder, {int? itemCount}) {
final newList = <E>[];
E element;
for (var i = 0; itemCount != null ? i < itemCount : true; i++) {
element = builder(i);
if (element == null) break;
newList.add(element);
}
return newList;
}