LayoutModifier.Companion


public static class LayoutModifier.Companion implements LayoutModifier


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

Summary

Public methods

static @NonNull R
<R extends Object> foldRight(
    @NonNull R initial,
    @NonNull Function2<@NonNull R, @NonNull LayoutModifier.Element, @NonNull R> operation
)

Accumulates a value starting with initial and applying operation to the current value and each element from left to right.

static @NonNull LayoutModifier

Concatenates this modifier with another.

static @NonNull String

Public methods

foldRight

public static @NonNull R <R extends Object> foldRight(
    @NonNull R initial,
    @NonNull Function2<@NonNull R, @NonNull LayoutModifier.Element, @NonNull R> operation
)

Accumulates a value starting with initial and applying operation to the current value and each element from left to right.

foldRight may be used to accumulate a value starting from the head of the modifier chain to the final modifier element.

then

public static @NonNull LayoutModifier then(@NonNull LayoutModifier other)

Concatenates this modifier with another.

Returns a LayoutModifier representing this modifier followed by other in sequence.

toString

public static @NonNull String toString()