()
| 191 | /** Value of the toggle group. */ |
| 192 | @Input() |
| 193 | get value(): any { |
| 194 | const selected = this._selectionModel ? this._selectionModel.selected : []; |
| 195 | |
| 196 | if (this.multiple) { |
| 197 | return selected.map(toggle => toggle.value); |
| 198 | } |
| 199 | |
| 200 | return selected[0] ? selected[0].value : undefined; |
| 201 | } |
| 202 | set value(newValue: any) { |
| 203 | this._setSelectionByValue(newValue); |
| 204 | this.valueChange.emit(this.value); |
nothing calls this directly
no test coverage detected