StateDelegate

Lazily creates one holder using the ViewModel scope and the property name when no key is given.

Constructors

Link copied to clipboard
constructor(create: (ViewModel, String) -> S)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: ViewModel, property: KProperty<*>): S

Creates the holder on first access and returns that same holder on subsequent reads.