scrollToItem method
Implementation
void scrollToItem(T item, {bool highlightItem = false}) {
if (!this.bloc.isScrollable) {
throw StateError(
'scrollToIndex can only be used on a bloc that mixes in '
'ScrollableListBlocMixin<$T, $P>.',
);
}
final bloc = this.bloc as ScrollableListBlocMixin<T, P>;
bloc.add(ListEventScrollToItem<T>(item: item, highlightItem: highlightItem));
}