focusToItem method

void focusToItem(
  1. int index
)

Trigger focus to an item inside the list Will trigger scoll animation to focused item

Implementation

void focusToItem(int index) {
  double targetLoc =
      _calcCardLocation(index: index, itemSize: widget.itemSize);
  _animateScroll(targetLoc);
}