Package-level declarations
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun <R : Resource, T> R.nullableAttribute(name: String, defaultValue: T? = null): MapDelegate<R, T?>
Delegate for nullable attributes. Let you specify the name of the attribute to delegate to.
Link copied to clipboard
Link copied to clipboard
Converts Any? to a JsonElement.
Converts Array<*> to a JsonElement.
Converts Collection<*> to a JsonElement.
Converts Map<*, *> to a JsonElement.
Link copied to clipboard
fun <T> MutableList<T>.trackChanges(callback: (item: T, list: DirtyList<T>) -> Unit = {_, _ ->}): DirtyList<T>
Track changes in a mutable list.
fun <K, V> MutableMap<K, V>.trackChanges(callback: (key: K, value: V, map: DirtyMap<K, V>) -> Unit = { _, _, _ ->}): DirtyMap<K, V>
Track changes in a mutable map.