blob: 9f0de09196a05d1211b05ba1f6c196ec4eab6be5 [file] [log] [blame]
part of stocksapp;
class Stocklist extends FixedHeightScrollable {
List<Stock> stocks;
Stocklist({
Object key,
this.stocks
}) : super(key: key, minOffset: 0.0);
List<Node> buildItems(int start, int count) {
var items = [];
for (var i = 0; i < count; i++) {
items.add(new StockRow(stock: stocks[start + i]));
}
return items;
}
}