value

abstract val value: T

The current value.

Reading this property may trigger state read tracking depending on the current execution context. When read during:

  • Component resolve → tracked for re-resolve on change

  • Layout calculation → tracked for re-layout on change

  • Binder execution → tracked for rebind-only on change

  • Draw scope execution → tracked for redraw-only on change

Thread Safety

This property is safe to read from any thread. Implementations must ensure thread-safe access to the underlying value.

Performance Note

It may be more efficient to defer reading this value by passing the Value<T> object around instead. This allows the value to be read when it's actually needed, rather than eagerly during a resolve, which can significantly improve performance.