Function

resolveDefaults

Fills missing values in TextStyle with default values and resolve TextDirection.

resolveDefaults

Source set: Common
public fun resolveDefaults(style: TextStyle, direction: LayoutDirection): TextStyle

Fills missing values in TextStyle with default values and resolve TextDirection.

This function will fill all null or TextUnit.Unspecified field with actual values.

Parameters

style a text style to be resolved
direction a layout direction to be used for resolving text layout direction algorithm

Return

resolved text style.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: