class Pangram { bool isPangram(String pangram) => pangram .toLowerCase() .replaceAll(new RegExp(r'[^a-z]'), '') .split('') .toSet() .length == 26; }