emitSelectionChange method

  1. @protected
void emitSelectionChange()

Implementation

@protected
void emitSelectionChange() {
  if (_selectionChangeController == null) return;
  if (selection is SingleSelectionModel<T>) {
    _selectionChangeController!.add(selection.selectedValues.isNotEmpty
        ? selection.selectedValues.first
        : null);
  } else {
    _selectionChangeController!.add(selection.selectedValues);
  }
}