buildWrap method
Implementation
@protected
Widget buildWrap(BuildParameters params) {
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 Wrap(
key: properties.getKey(params.id),
direction: params.buildProp("direction") ?? Axis.horizontal,
verticalDirection: params.buildProp("verticalDirection"),
spacing: parseDouble(params.props["spacing"]),
runAlignment:
BaseProperties().getWrapAlignment(params.props["runAlignment"]),
runSpacing: parseDouble(params.props["runSpacing"]),
alignment: params.buildProp("alignment"),
crossAxisAlignment: BaseProperties()
.getWrapCrossAlignment(params.props["crossAxisAlignment"]),
children: children,
);
}