Skip to main content

text_align_of

Function text_align_of 

Source
pub fn text_align_of(
    style: &Map<String, Value>,
    props: &Map<String, Value>,
    direction: TextDirection,
) -> PhysicalAlign
Expand description

A node’s text alignment: its (flattened) style textAlign, else a Text’s align prop, else start, resolved against its direction.