LazyMutable

class LazyMutable<T>(initializer: () -> T) : ReadWriteProperty<Any?, T> (source)

A delegate allowing to lazily initialise a non-null mutable variable (= var).

Constructors

Link copied to clipboard
constructor(initializer: () -> T)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
open operator override fun setValue(thisRef: Any?, property: KProperty<*>, value: T)