withAorAn property
String
get
withAorAn
Returns "an" before the string if it starts with a vowel, otherwise "a".
Implementation
String get withAorAn => startsWith(RegExp('[aeiouAEIOU]')) ? "an ${toLowerCase()}" : "a ${toLowerCase()}";