scrollToSelected method
void
scrollToSelected()
Scroll to the selected choice item
Implementation
void scrollToSelected() {
WidgetsBinding.instance.addPostFrameCallback((_) {
final renderObject = selectedContext?.findRenderObject();
if (isScrollable && renderObject != null) {
scrollController?.position.ensureVisible(renderObject);
}
});
}