Merge pull request #765 from abarth/layout_id_key

LayoutId should default to using its id as its key
This commit is contained in:
Adam Barth
2015-12-05 10:17:38 -08:00

View File

@@ -304,9 +304,10 @@ class LayoutId extends ParentDataWidget {
LayoutId({
Key key,
Widget child,
this.id
}) : super(key: key, child: child) {
Object id
}) : id = id, super(key: key ?? new ValueKey(id), child: child) {
assert(child != null);
assert(id != null);
}
final Object id;