containsProfanity static method

bool containsProfanity(
  1. String text
)

Checks if text contains profanity

Implementation

static bool containsProfanity(String text) {
  return _profanityPattern.hasMatch(text);
}