getFinalChildren static method
List<Widget>
getFinalChildren(
- BuildContext context,
- dynamic nodeState,
- List<
CNode> children, - FGeneralTypeInput? typeInput,
Implementation
static List<Widget> getFinalChildren(
BuildContext context,
WidgetState nodeState,
List<CNode> children,
FGeneralTypeInput? typeInput) {
if (typeInput == null) {
return getChildren(context, nodeState, children);
}
if (children.isEmpty) {
return getChildren(context, nodeState, children);
}
final itemCount = typeInput.length(
context: context,
loop: nodeState.loop,
);
final firstWidget = getChildren(context, nodeState, children).first;
final result = <Widget>[];
for (var i = 0; i < itemCount; i++) {
result.add(firstWidget);
}
return result;
}