isNativeC40 static method

bool isNativeC40(
  1. dynamic chr
)

Implementation

static bool isNativeC40(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 >= 65 /* A */ && ch <= 90 /* Z */);
}