# matchTextDirection property

Whether to paint the image in the direction of the TextDirection.

If this is true, then in TextDirection.ltr contexts, the image will be drawn with its origin in the top left (the "normal" painting direction for children); and in TextDirection.rtl contexts, the image will be drawn with a scaling factor of -1 in the horizontal direction so that the origin is in the top right.

This is occasionally used with children in right-to-left environments, for children that were designed for left-to-right locales. Be careful, when using this, to not flip children with integral shadows, text, or other effects that will look incorrect when flipped.

If this is true, there must be an ambient Directionality widget in scope.

## Implementation

`final bool matchTextDirection;`