Toggles the checked state of the slide-toggle.
()
| 293 | |
| 294 | /** Toggles the checked state of the slide-toggle. */ |
| 295 | toggle(): void { |
| 296 | this.checked = !this.checked; |
| 297 | this._onChange(this.checked); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Emits a change event on the `change` output. Also notifies the FormControl about the change. |