rememberWindowAdaptiveInfo

fun rememberWindowAdaptiveInfo(supportLargeAndXLargeWidth: Boolean = true): WindowAdaptiveInfo(source)

Remembers the current WindowAdaptiveInfo, with the Large and ExtraLarge width classes unless supportLargeAndXLargeWidth is false.

Material reports every width class through currentWindowAdaptiveInfoV2() and deprecated the entry point that stopped at Expanded. Without the wider classes, the size class is computed from the same window with WindowSizeClass.BREAKPOINTS_V1, which ends at Expanded, so the flag keeps its meaning without the deprecated call.