DashedShape

class DashedShape(val shape: Shape = RectangleShape, val dashLength: Dp = Defaults.DASHED_SHAPE_DASH_LENGTH.dp, val gapLength: Dp = Defaults.DASHED_SHAPE_GAP_LENGTH.dp, val fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize) : Shape

DashedShape draws a dashed line by interchangeably drawing the provided shape and leaving a gap.

Constructors

Link copied to clipboard
constructor(shape: Shape = RectangleShape, dashLength: Dp = Defaults.DASHED_SHAPE_DASH_LENGTH.dp, gapLength: Dp = Defaults.DASHED_SHAPE_GAP_LENGTH.dp, fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize)

Types

Link copied to clipboard

Defines how a DashedShape is to be rendered.

Properties

Link copied to clipboard

the dash length.

Link copied to clipboard
Link copied to clipboard

the gap length.

Link copied to clipboard

the base Shape from which to create the DashedShape.

Functions

Link copied to clipboard
open override fun createOutline(size: Size, layoutDirection: LayoutDirection, density: Density): Outline
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int