OtpCellDimensions

class OtpCellDimensions(val cellWidth: Dp, val cellHeight: Dp, val borderWidth: Dp, val focusedBorderWidth: Dp, val cornerRadius: Dp, val spacing: Dp, val textSize: TextUnit)(source)

Sizes used by an OTP cell. Get one from OtpInputDefaults.dimensions.

Constructors

Link copied to clipboard
constructor(cellWidth: Dp, cellHeight: Dp, borderWidth: Dp, focusedBorderWidth: Dp, cornerRadius: Dp, spacing: Dp, textSize: TextUnit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val spacing: Dp

Gap between cells when no separator slot is given.

Link copied to clipboard

Functions

Link copied to clipboard
fun copy(cellWidth: Dp = this.cellWidth, cellHeight: Dp = this.cellHeight, borderWidth: Dp = this.borderWidth, focusedBorderWidth: Dp = this.focusedBorderWidth, cornerRadius: Dp = this.cornerRadius, spacing: Dp = this.spacing, textSize: TextUnit = this.textSize): OtpCellDimensions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int