count static method

int count(
  1. String word
)

Implementation

static int count(String word) {
  final vowels = RegExp(r'[аеёиоуыэюя]');
  return vowels.allMatches(word.toLowerCase()).length;
}