Function

modifierLocalMapOf

Creates an empty ModifierLocalMap

modifierLocalMapOf

Source set: Common
public fun modifierLocalMapOf(): ModifierLocalMap

Creates an empty ModifierLocalMap

modifierLocalMapOf

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

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

modifierLocalMapOf

Source set: Common
public 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.

modifierLocalMapOf

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

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

modifierLocalMapOf

Source set: Common
public 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.

modifierLocalMapOf

Source set: Common
@Deprecated(
    message = "Use a different overloaded version of this function",
    level = DeprecationLevel.HIDDEN,
)
public fun modifierLocalMapOf(vararg keys: ModifierLocal<*>): ModifierLocalMap

modifierLocalMapOf

Source set: Common
@Deprecated(
    message = "Use a different overloaded version of this function",
    level = DeprecationLevel.HIDDEN,
)
public fun modifierLocalMapOf(vararg entries: Pair<ModifierLocal<*>, Any>): ModifierLocalMap
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: