getSelectionModel method

MutableSelectionModel<D> getSelectionModel(
  1. SelectionModelType type
)
inherited

Returns MutableSelectionModel for the given type. Lazy creates one upon first request.

Implementation

MutableSelectionModel<D> getSelectionModel(SelectionModelType type) {
  return _selectionModels.putIfAbsent(type, () => MutableSelectionModel<D>());
}