addComponentItems function Null safety
Same as setComponentItems but it will append items to the end of the ListView
Implementation
void addComponentItems(String name, dynamic itemsString, [int index = 0]) {
List<Map<String, dynamic>> items = parseItems(itemsString);
var elems = getElementsByName(name, index + 1);
if (index < elems.length) {
elems[index].widget?.setState(() {
for (var i = 0; i < items.length; i++) {
elems[index].widget?.items?.add(items[i]);
}
});
}
}