onChange method

void onChange(
  1. K value
)

Implementation

void onChange(K value) {
  widget.update(value.item);
  controller.closeView(null);
}