onChange method

  1. @override
void onChange()
override

Called when the modal closed and selection has confirmed

Implementation

@override
void onChange() {
  // set cache to final value
  // setState(() => selected = selected.copyWith(choice: selection.choice));
  selected.choice = selection?.choice;
  widget.multiOnChange?.call(selected);
}