isRtl static method
Implementation
static bool isRtl(String text) {
for (int i = 0; i < text.length; i++) {
final int codeUnit = text.codeUnitAt(i);
final BidiCategory category = _getBidiCategory(codeUnit);
if (category == BidiCategory.L) {
return false;
} else if (category == BidiCategory.R || category == BidiCategory.AL) {
return true;
}
}
return false;
}