()
| 158 | } |
| 159 | |
| 160 | getValue(): T { |
| 161 | if (this.context[contextProp]) { |
| 162 | return this.context[contextProp].get(); |
| 163 | } else { |
| 164 | return defaultValue; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | onUpdate = (newValue, changedBits: number) => { |
| 169 | const observedBits: number = this.observedBits | 0; |