Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

assertWidthIsEqualTo

Asserts that the layout of this node has width equal to expectedWidth.

assertWidthIsEqualTo

Source set: Android
@CanIgnoreReturnValue
public fun SubspaceSemanticsNodeInteraction.assertWidthIsEqualTo(
    expectedWidth: Dp
): SubspaceSemanticsNodeInteraction

Asserts that the layout of this node has width equal to expectedWidth.

Parameters

expectedWidth The width to assert.

Last updated: