Rationalise the Key API.

Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class.
Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
This commit is contained in:
Hixie 2015-08-28 10:52:23 -07:00
parent c18de38551
commit e016635792

View File

@ -142,7 +142,7 @@ class MineDiggerApp extends App {
new Row(
row,
justifyContent: FlexJustifyContent.center,
key: new Key.stringify(iy)
key: new ValueKey<int>(iy)
)
);
}