isSurrogatePair function

bool isSurrogatePair(
  1. String str
)

check if the string contains any surrogate pairs chars

Implementation

bool isSurrogatePair(String str) {
  return _surrogatePairsRegExp.hasMatch(str);
}