modifierLocalMapOf

Function

Common
fun modifierLocalMapOf(): ModifierLocalMap

Creates an empty ModifierLocalMap

Common
fun <T> modifierLocalMapOf(key: ModifierLocal<T>): ModifierLocalMap

Creates a ModifierLocalMap with a single key and value initialized to null.

Common
fun <T> modifierLocalMapOf(entry: Pair<ModifierLocal<T>, T>): ModifierLocalMap

Creates a ModifierLocalMap with a single key and value. The provided entry should have Pair::first be the ModifierLocal key, and the Pair::second be the corresponding value.

Common
fun modifierLocalMapOf(
    key1: ModifierLocal<*>,
    key2: ModifierLocal<*>,
    vararg keys: ModifierLocal<*>,
): ModifierLocalMap

Creates a ModifierLocalMap with several keys, all initialized with values of null

Common
fun modifierLocalMapOf(
    entry1: Pair<ModifierLocal<*>, Any>,
    entry2: Pair<ModifierLocal<*>, Any>,
    vararg entries: Pair<ModifierLocal<*>, Any>,
): ModifierLocalMap

Creates a ModifierLocalMap with multiple keys and values. The provided entries should have each item's Pair::first be the ModifierLocal key, and the Pair::second be the corresponding value.

Common

Deprecated Use a different overloaded version of this function

fun modifierLocalMapOf(vararg keys: ModifierLocal<*>): ModifierLocalMap
Common

Deprecated Use a different overloaded version of this function

fun modifierLocalMapOf(vararg entries: Pair<ModifierLocal<*>, Any>): ModifierLocalMap