buildDefaultContent static method
By default, build a Column widget for layout all children's size.
Implementation
static Widget buildDefaultContent(
BuildContext context, ExpandableSectionContainerInfo containerInfo) {
var childDelegate = containerInfo.childDelegate;
if (childDelegate != null) {
var children =
List<Widget>.generate(childDelegate.childCount ?? 0, (index) {
return childDelegate.builder(context, index) ?? Container();
});
return Column(
children: children,
);
}
return Container();
}