to method
Implementation
void to(int pos) {
final index = activeIndex,
$items = _$items;;
if (pos > (_$items!.length - 1) || pos < 0 || $items == null)
return;
if (_sliding) {
$element.one('slid', (QueryEvent e) {
to(pos);
});
}
if (index == pos) {
pause();
cycle();
}
slide(pos > index ? 'next' : 'prev', $items[pos]);
}