Unverified Commit 2cbe01df authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Fix a Dart 2 type error in the Stocks example (#15634)

parent 83799279
......@@ -56,9 +56,9 @@ class StockData extends ChangeNotifier {
bool get loading => _httpClient != null;
void add(List<List<String>> data) {
for (List<String> fields in data) {
final Stock stock = new Stock.fromFields(fields);
void add(List<dynamic> data) {
for (List<dynamic> fields in data) {
final Stock stock = new Stock.fromFields(fields.cast<String>());
_symbols.add(stock.symbol);
_stocks[stock.symbol] = stock;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment