rememberStyleResolver
Source set: Common
@Composable
public fun rememberStyleResolver(
style: CommonStyle,
styleState: StyleState = remember { MutableStyleState(null) },
): StyleResolver
Create and remember a StyleResolver.
rememberStyleResolver should be used when creating a StyleResolver in composition because it will update the style and styleState values in a remembered StyleResolver which avoids unnecessary property invalidations and animation cancellation.