Modifier

@ObjCName(name = "Modifier", exact = true)
interface Modifier

An ordered, immutable collection of elements that change how a widget is laid out.

Inheritors

Types

Link copied to clipboard
@ObjCName(name = "EmptyModifier", exact = true)
object Companion : Modifier

The companion object Modifier is the empty, default, or starter Modifier that contains no elements. Use it to create a new Modifier using modifier extension factory functions or as the default value for Modifier parameters.

Link copied to clipboard
interface Element : Modifier

A single element contained within a Modifier chain.

Functions

Link copied to clipboard
abstract fun forEach(block: (Modifier.Element) -> Unit)

Iterates over all Elements in this Modifier.

Link copied to clipboard
open infix fun then(other: Modifier): Modifier

Concatenates this modifier with another.