ModifiersBuilders.Modifiers

public final class ModifiersBuilders.Modifiers


Modifiers for an element. These may change the way they are drawn (e.g. or Background), or change their behaviour (e.g. Clickable, or ).

Summary

Public methods

static @NonNull ModifiersBuilders.Modifiers.Builder

Returns a new Builder.

@Nullable ModifiersBuilders.Background

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

@Nullable ModifiersBuilders.Border

Gets draws a border around the modified element.

@Nullable ModifiersBuilders.Clickable

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

@Nullable ModifiersBuilders.Padding

Gets adds padding to the modified element.

@Nullable ModifiersBuilders.Semantics

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

Public methods

builder

@NonNull
public static ModifiersBuilders.Modifiers.Builder builder()

Returns a new Builder.

getBackground

@Nullable
@NonNull
public ModifiersBuilders.Background getBackground()

Gets adds a background (with optional corner radius) to the modified element. Intended for testing purposes only.

getBorder

@Nullable
@NonNull
public ModifiersBuilders.Border getBorder()

Gets draws a border around the modified element. Intended for testing purposes only.

getClickable

@Nullable
@NonNull
public ModifiersBuilders.Clickable getClickable()

Gets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped. Intended for testing purposes only.

getPadding

@Nullable
@NonNull
public ModifiersBuilders.Padding getPadding()

Gets adds padding to the modified element. Intended for testing purposes only.

getSemantics

@Nullable
@NonNull
public ModifiersBuilders.Semantics getSemantics()

Gets adds metadata for the modified element, for example, screen reader content descriptions. Intended for testing purposes only.