hasPersian static method

bool hasPersian(
  1. String input, [
  2. bool isComplex = false
])

Implementation

static bool hasPersian(String input, [bool isComplex = false]) {
  var faRegExp = isComplex ? faComplexText : faText;
  return RegExp('[$faRegExp]').hasMatch(input);
}