getDirectionOfNode function

TextDirection getDirectionOfNode(
  1. StyledNode node
)

Implementation

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