estimateDirection method

TextDirection estimateDirection (String text, { bool isHtml: false })

Estimates the directionality of text using the best known general-purpose method (using relative word counts). A TextDirection.UNKNOWN return value indicates completely neutral input. isHtml is true if text HTML or HTML-escaped.

Implementation

TextDirection estimateDirection(String text, {bool isHtml: false}) {
  return Bidi.estimateDirectionOfText(text, isHtml: isHtml); //TODO~!!!
}