repeatNum method

int repeatNum({
  1. required String checkStr,
})

Implementation

int repeatNum({required String checkStr}) {
  List<String> contens = this.split(checkStr);
  return contens.length - 1;
}