ModifiersBuilders.Shadow.Builder


public final class ModifiersBuilders.Shadow.Builder


Builder for Shadow

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.Shadow

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Shadow.Builder
@RequiresSchemaVersion(major = 1, minor = 300)
setBlurRadius(@NonNull DimensionBuilders.DpProp blurRadius)

Sets the blur radius of the shadow.

@NonNull ModifiersBuilders.Shadow.Builder
@RequiresSchemaVersion(major = 1, minor = 300)
setColor(@NonNull ColorBuilders.ColorProp color)

Sets the color used in the shadow.

Public constructors

Builder

Added in 1.1.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.1.0
public @NonNull ModifiersBuilders.Shadow build()

Builds an instance from accumulated values.

setBlurRadius

Added in 1.1.0
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull ModifiersBuilders.Shadow.Builder setBlurRadius(@NonNull DimensionBuilders.DpProp blurRadius)

Sets the blur radius of the shadow. It controls the size of the blur that is drawn. When set to zero, the shadow is not drawn. Defaults to zero.

Note that this field only supports static values.

setColor

Added in 1.1.0
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull ModifiersBuilders.Shadow.Builder setColor(@NonNull ColorBuilders.ColorProp color)

Sets the color used in the shadow. Defaults to Black.

Note that this field only supports static values.