count static method

int count(
  1. String word
)

Implementation

static int count(String word) {
  final vowels = RegExp(r'[اویے]');
  return vowels.allMatches(word).length;
}