select method

void select(
  1. K key
)

Implementation

void select(K key) {
  if (selectionMode == TSelectionMode.none) return;

  final newSelectedKeys = selectionMode == TSelectionMode.single ? copyKeySet(<K>[key]) : copyKeySet(selectedKeys)
    ..add(key);

  updateState(selectedKeys: newSelectedKeys, who: 'selectKey');
}