init method
Implementation
void init(SeparatorFactory separatorFactory) {
final originalChildren = _info.children;
final size = originalChildren.length;
final originalPercentages = _info.percentages ?? List.filled(size, 1 / size);
for (var i = 0; i < size - 1; i++) {
children.add(ResizableWidgetChildData(originalChildren[i], originalPercentages[i]));
children.add(ResizableWidgetChildData(
separatorFactory.call(SeparatorArgsBasicInfo(
2 * i + 1,
_info.isHorizontalSeparator,
_info.isDisabledSmartHide,
_info.separatorSize,
_info.separatorColor,
)),
null));
}
children.add(ResizableWidgetChildData(originalChildren[size - 1], originalPercentages[size - 1]));
}