getTextDirection static method

TextDirection getTextDirection(
  1. BuildContext context
)

Implementation

static TextDirection getTextDirection(BuildContext context){
  if ( isArabic(context) ) {
    return TextDirection.rtl;
  } else {
    return TextDirection.ltr;
  }
}