buildExpanded method
Implementation
Expanded buildExpanded(Map props, BuildContext context) {
if (props['items'] == null) {
throw Exception('Expanded must have items property');
}
List<Widget> childWidgets = buildChildWidgets(props['items'] as List);
Widget child;
if (childWidgets.isNotEmpty) {
child = childWidgets.first;
} else {
throw Exception("Expanded must have one child");
}
return Expanded(child: child);
}