ModifiersBuilders.Modifiers.Builder

public final class ModifiersBuilders.Modifiers.Builder


Builder for Modifiers

Summary

Public methods

@NonNull ModifiersBuilders.Modifiers

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds a background (with optional corner radius) to the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds a background (with optional corner radius) to the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets draws a border around the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets draws a border around the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds padding to the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds padding to the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds metadata for the modified element, for example, screen reader content descriptions.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets adds metadata for the modified element, for example, screen reader content descriptions.

Public methods

build

@NonNull
public ModifiersBuilders.Modifiers build()

Builds an instance from accumulated values.

setBackground

@NonNull
public ModifiersBuilders.Modifiers.Builder setBackground(@NonNull ModifiersBuilders.Background background)

Sets adds a background (with optional corner radius) to the modified element.

setBackground

@NonNull
public ModifiersBuilders.Modifiers.Builder setBackground(
    @NonNull ModifiersBuilders.Background.Builder backgroundBuilder
)

Sets adds a background (with optional corner radius) to the modified element.

setBorder

@NonNull
public ModifiersBuilders.Modifiers.Builder setBorder(@NonNull ModifiersBuilders.Border border)

Sets draws a border around the modified element.

setBorder

@NonNull
public ModifiersBuilders.Modifiers.Builder setBorder(@NonNull ModifiersBuilders.Border.Builder borderBuilder)

Sets draws a border around the modified element.

setClickable

@NonNull
public ModifiersBuilders.Modifiers.Builder setClickable(@NonNull ModifiersBuilders.Clickable clickable)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

setClickable

@NonNull
public ModifiersBuilders.Modifiers.Builder setClickable(
    @NonNull ModifiersBuilders.Clickable.Builder clickableBuilder
)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

setPadding

@NonNull
public ModifiersBuilders.Modifiers.Builder setPadding(@NonNull ModifiersBuilders.Padding padding)

Sets adds padding to the modified element.

setPadding

@NonNull
public ModifiersBuilders.Modifiers.Builder setPadding(@NonNull ModifiersBuilders.Padding.Builder paddingBuilder)

Sets adds padding to the modified element.

setSemantics

@NonNull
public ModifiersBuilders.Modifiers.Builder setSemantics(@NonNull ModifiersBuilders.Semantics semantics)

Sets adds metadata for the modified element, for example, screen reader content descriptions.

setSemantics

@NonNull
public ModifiersBuilders.Modifiers.Builder setSemantics(
    @NonNull ModifiersBuilders.Semantics.Builder semanticsBuilder
)

Sets adds metadata for the modified element, for example, screen reader content descriptions.