updateSelectionState method

void updateSelectionState(
  1. LinkedHashSet<K> newSelectedKeys
)

Replaces the entire selected key set with newSelectedKeys.

Use this when you need to set selection state from an external source (e.g., syncing with a value notifier or external value).

Implementation

void updateSelectionState(LinkedHashSet<K> newSelectedKeys) {
  updateState(who: 'updateSelectionState', selectedKeys: newSelectedKeys);
}