Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!-- Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
public override fun setValue(thisRef: Any?, property: KProperty<*>, value: T) {
val oldValue = this.value
if (!beforeChange(property, oldValue, value)) {
this.value = value
afterChange(property, oldValue, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment