MCPcopy Index your code
hub / github.com/angular/components / clear

Method clear

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

* Clears all of the selected values. * @param flushEvent Whether to flush the changes in an event. * If false, the changes to the selection will be flushed along with the next event. * @return Whether the selection changed as a result of this call

(flushEvent = true)

Source from the content-addressed store, hash-verified

112 * @return Whether the selection changed as a result of this call
113 */
114 clear(flushEvent = true): boolean {
115 this._unmarkAll();
116 const changed = this._hasQueuedChanges();
117 if (flushEvent) {
118 this._emitChangeEvent();
119 }
120 return changed;
121 }
122
123 /**
124 * Determines whether a value is selected.

Callers

nothing calls this directly

Calls 3

_unmarkAllMethod · 0.95
_hasQueuedChangesMethod · 0.95
_emitChangeEventMethod · 0.95

Tested by

no test coverage detected