loadChoiceItems method
load the choice items
Implementation
@protected
/// load the choice items
void loadChoiceItems({ensureSelectedVisibility = false}) async {
try {
setState(() => choiceItems = widget.choiceItems);
// load async choice items
if (hasChoiceLoader) {
choiceItemsMemoizer = choiceItemsMemoizer ?? C2ChoiceMemoizer();
await loadAsyncChoiceItems();
}
} finally {
if (ensureSelectedVisibility == true) scrollToSelected();
}
}