replaceChoice method

List<MultiselectOption> replaceChoice(
  1. MultiselectOption choice
)

Implementation

List<MultiselectOption> replaceChoice(MultiselectOption choice) {
  state = [choice];
  return [choice];
}