Commit 7818b1c0 authored by Adam Barth's avatar Adam Barth

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
parent cc1c9cb9
......@@ -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<String> fields) {
// FIXME: This class should only have static data, not lastSale, etc.
......
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