INNER CODE UNIT · Dart
indexOfLine
fluttercandies/flutter_scrollview_observer · lib/src/common/observer_controller.dart:1198
indexOfLine = (index / itemsPerLine).floor();
// Calculate the offset of the target child widget on the main axis.
double targetChildLayoutOffset =
(childMainAxisSize + itemSeparatorHeight) * indexOfLine;
return ObserveScrollToIndexFixedHeightResultModel(
childMainAxisSize: childMainAxisSize,
itemSeparatorHeight: itemSeparatorHeight,
indexOfLine: indexOfLine,
targetChildLayoutOffset: targetChildLayoutOffset,
);
}
/// Update the [indexOffsetMap] property.
void _updateIndexOffsetMap({
required BuildContext ctx,
required int index,
required double childLayoutOffset,