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 12e3897f40
commit 9047830c2e
14 changed files with 25 additions and 28 deletions

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)
)
);
}