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;