(value: Direction = this.state.direction === 'ltr' ? 'rtl' : 'ltr')
| 213 | } |
| 214 | |
| 215 | toggleDirection(value: Direction = this.state.direction === 'ltr' ? 'rtl' : 'ltr') { |
| 216 | if (value !== this._dir.value) { |
| 217 | this._dir.value = this.state.direction = value; |
| 218 | this._changeDetectorRef.markForCheck(); |
| 219 | setAppState(this.state); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | toggleM3(value = !this.state.m3Enabled) { |
| 224 | // We need to diff this one since it's a bit more expensive to toggle. |
no test coverage detected