From 7818b1c0bb585f8c4b261e5d0818119bfd915493 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 23 Mar 2015 11:23:48 -0700 Subject: [PATCH] Make it possible to construct a Stock directly We were missing the ability to initialize one of the fields. TBR=rafaelw@chromium.org Review URL: https://codereview.chromium.org/1027293003 --- examples/stocks-fn/lib/stock_data.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stocks-fn/lib/stock_data.dart b/examples/stocks-fn/lib/stock_data.dart index 9ca0de86ff..17e083c1cc 100644 --- a/examples/stocks-fn/lib/stock_data.dart +++ b/examples/stocks-fn/lib/stock_data.dart @@ -23,7 +23,7 @@ class Stock { String marketCap; double percentChange; - Stock(this.symbol, this.name, this.lastSale, this.marketCap); + Stock(this.symbol, this.name, this.lastSale, this.marketCap, this.percentChange); Stock.fromFields(List fields) { // FIXME: This class should only have static data, not lastSale, etc.