isVowel property

bool get isVowel

Implementation

bool get isVowel {
  switch (this) {
    case "a":
    case "e":
    case "i":
    case "o":
    case "u":
      return true;
    default:
      return false;
  }
}