getDirectionOfNode function

TextDirection getDirectionOfNode(
  1. Node node
)

Implementation

TextDirection getDirectionOfNode(Node node) {
  final direction = node.style.attributes[Attribute.direction.key];
  if (direction == Attribute.rtl) {
    return TextDirection.rtl;
  }
  return TextDirection.ltr;
}