getDirectionOfNode function
Implementation
TextDirection getDirectionOfNode(StyledNode node) {
final direction = node.style.get(ParchmentAttribute.direction);
if (direction == ParchmentAttribute.rtl) {
return TextDirection.rtl;
}
return TextDirection.ltr;
}