Fix various strong mode issues. (#14284)

This commit is contained in:
Vyacheslav Egorov
2018-01-31 08:21:32 +01:00
committed by GitHub
parent 122796137b
commit 340d9e00cf
7 changed files with 20 additions and 6 deletions

View File

@@ -168,6 +168,8 @@ class DemoItem<T> {
);
};
}
Widget build() => builder(this);
}
class ExpasionPanelsDemo extends StatefulWidget {
@@ -351,7 +353,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
return new ExpansionPanel(
isExpanded: item.isExpanded,
headerBuilder: item.headerBuilder,
body: item.builder(item)
body: item.build()
);
}).toList()
),