attach method
- ScrollPosition position
override
Register the given position with this controller.
After this function returns, the animateTo and jumpTo methods on this controller will manipulate the given position.
Implementation
@override
void attach(ScrollPosition position) {
super.attach(position);
final _CarouselPosition carouselPosition = position as _CarouselPosition;
carouselPosition.flexWeights = _carouselState!._flexWeights;
carouselPosition.itemExtent = _carouselState!._itemExtent;
carouselPosition.consumeMaxWeight = _carouselState!._consumeMaxWeight;
}