isNativeText static method

bool isNativeText(
  1. dynamic chr
)

Implementation

static bool isNativeText(dynamic chr) {
  int ch = 0;
  if (chr is String) {
    ch = chr.codeUnitAt(0);
  } else {
    ch = chr as int;
  }
  return (ch == 32 /*   */) ||
      (ch >= 48 /* 0 */ && ch <= 57 /* 9 */) ||
      (ch >= 97 /* a */ && ch <= 122 /* z */);
}