Source set: Android
override var layoutDirection by
mutableStateOf(
// We don't use the attached View's layout direction here since that layout direction
// may not be resolved since composables may be composed without attaching to the
// RootViewImpl.
// In Jetpack Compose, use the locale layout direction (i.e. layoutDirection came from
// configuration) as a default layout direction.
toLayoutDirection(context.resources.configuration.layoutDirection)
?: LayoutDirection.Ltr
)