MCPcopy
hub / github.com/angular/components / _unmarkSelected

Method _unmarkSelected

src/cdk/collections/selection-model.ts:228–237  ·  view source on GitHub ↗

Deselects a value.

(value: T)

Source from the content-addressed store, hash-verified

226
227 /** Deselects a value. */
228 private _unmarkSelected(value: T) {
229 value = this._getConcreteValue(value);
230 if (this.isSelected(value)) {
231 this._selection.delete(value);
232
233 if (this._emitChanges) {
234 this._deselectedToEmit.push(value);
235 }
236 }
237 }
238
239 /** Clears out the selected values. */
240 private _unmarkAll() {

Callers 3

_deselectMethod · 0.95
_setSelectionMethod · 0.95
_unmarkAllMethod · 0.95

Calls 4

_getConcreteValueMethod · 0.95
isSelectedMethod · 0.95
deleteMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected