mirror
An extension function for the Modifier
class that mirrors the content horizontally based on the layout direction.
Return
A modified Modifier
with horizontal mirroring applied if the layout direction is LayoutDirection.Rtl
.
Parameters
layoutDirection
The LayoutDirection
which determines the mirroring. If the direction is LayoutDirection.Rtl
, the content is mirrored.