isRtl static method

bool isRtl(
  1. String text
)

Implementation

static bool isRtl(String text) {
  for (final int code in text.runes) {
    if (isRtlCode(code)) return true;
    if (code >= 0x41 && code <= 0x5A) return false;
    if (code >= 0x61 && code <= 0x7A) return false;
  }
  return false;
}