wrapChildren method
Implementation
List<Widget> wrapChildren(
BuildContext context, List<NavigationBarItem> children) {
int index = 0;
List<Widget> newChildren = List.of(children);
for (var i = 0; i < children.length; i++) {
if (children[i].selectable) {
newChildren[i] = Data.inherit(
data: NavigationChildControlData(
index: index,
),
child: children[i],
);
index++;
}
}
return newChildren;
}