ModifiersBuilders.Shadow.Builder


class ModifiersBuilders.Shadow.Builder


Builder for Shadow

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.Shadow

Builds an instance from accumulated values.

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

Sets the blur radius of the shadow.

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

Sets the color used in the shadow.

Public constructors

Builder

Added in 1.1.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.1.0
fun build(): ModifiersBuilders.Shadow

Builds an instance from accumulated values.

setBlurRadius

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

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)
fun setColor(color: ColorBuilders.ColorProp): ModifiersBuilders.Shadow.Builder

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

Note that this field only supports static values.