GridBasicInfiniteAdapter constructor
GridBasicInfiniteAdapter(
- List? items,
- dynamic onItemClick
Implementation
GridBasicInfiniteAdapter(this.items, onItemClick) {
this.onItemClick = onItemClick;
for (var i = 0; i < items!.length; i++) {
itemsTile.add(ItemTile(index: i, object: items![i], onClick: this.onItemClick));
}
}