rest.map<ListData>((json) RangeError (index): Invalid value: Valid value range is empty: 1 code example
Example: RangeError (RangeError (index): Invalid value: Valid value range is empty: 0
ListView.builder(
itemCount: snapshot.data.length,
itemBuilder: (ctx, index) {
return WidgetItem();
});