textDirection property

TextDirection get textDirection

Text direction of the currently selected language.

Implementation

static TextDirection get textDirection =>
    supported.any((option) => option.code == current.value && option.isRtl)
    ? TextDirection.rtl
    : TextDirection.ltr;