canAddToFoldWidget method
bool
canAddToFoldWidget(
- int i,
- double offsetX,
- double screenW,
- FlowPaintingContext context,
- int lastIndex,
Implementation
bool canAddToFoldWidget(int i, double offsetX, double screenW,
FlowPaintingContext context, int lastIndex) {
if ((offsetX +
(context.getChildSize(i)?.width ?? 0) +
spacing +
(context.getChildSize(lastIndex)?.width ?? 0)) <=
screenW) {
return true;
}
return false;
}