indexToLayoutOffset method
- @override
override
The layout offset for the child with the given index.
This function is given the itemExtent
as an argument to avoid
recomputing itemExtent
repeatedly during layout.
By default, places the children in order, without gaps, starting from layout offset zero.
Implementation
@override
double indexToLayoutOffset(double itemExtent, int index) {
return _padding + super.indexToLayoutOffset(itemExtent, index);
}