Returns whether the input contains a special character.
static bool hasSpecialCharacter(String input) { return RegExp(r'[^A-Za-z\d]').hasMatch(input); }