getBorder

open fun getBorder(width: Dp, enabled: Boolean): BorderStroke?

Retrieves the border stroke configuration for the button based on the specified parameters.

Return

The border stroke configuration for the button. Returns null if no border color is provided.

Parameters

width

The width of the border stroke. Default is 1.dp.

enabled

Indicates whether the button is enabled or disabled.