emitSelectionChange method

  1. @protected
void emitSelectionChange()

Implementation

@protected
void emitSelectionChange() {
  if (_selectionChangeController == null) return;
  if (selection is SingleSelectionModel<T>) {
    var s = selection.selectedValues;

    _selectionChangeController?.add(s.isNotEmpty ? s.first : null);
  } else {
    var s = selection.selectedValues;
    _selectionChangeController?.add(s);
  }
}