$internalComposeGap method
Implementation
List<Widget> $internalComposeGap(
GapType type,
double? size,
) {
if (size == null || children.length == 0) return children;
final childrenWithGap = [...children];
final gap = SizedBox(
width: type == GapType.row ? size : null,
height: type == GapType.column ? size : null,
);
for (int index = 1; index < children.length - 1; index++)
childrenWithGap.insert(
index * 2,
gap,
);
childrenWithGap.insert(1, gap);
return childrenWithGap;
}