buildStaticListView method
Implementation
@protected
Widget buildStaticListView(BuildParameters params) {
final spec = params.spec;
final props = spec.props;
final children = <Widget>[];
if (params.widgets["children"] != null) {
for (Map childSpec in params.widgets["children"] as List<Map>) {
children.add(builder.buildWidget(
params.context, childSpec, params.state, params.parentContext));
}
}
return ListView(
key: properties.getKey(params.id),
padding: spec.buildProp("padding"),
shrinkWrap: parseBool(props["shrinkWrap"]),
reverse: parseBool(props["reverse"]),
primary: tryParseBool(props["primary"]),
scrollDirection: spec.buildProp("scrollDirection") ?? Axis.vertical,
keyboardDismissBehavior: spec.buildProp("keyboardDismissBehavior") ??
ScrollViewKeyboardDismissBehavior.manual,
semanticChildCount: children.length,
children: children,
);
}