vowelCount property
int
get
vowelCount
Returns the number of vowels in this string.
Implementation
int get vowelCount =>
toLowerCase().split('').where((c) => 'aeiou'.contains(c)).length;
Returns the number of vowels in this string.
int get vowelCount =>
toLowerCase().split('').where((c) => 'aeiou'.contains(c)).length;