calculateReadTime method

double calculateReadTime({
  1. int wordsPerMinute = 200,
})

Return average read time duration of given String in seconds

Implementation

double calculateReadTime({int wordsPerMinute = 200}) {
  var words = countWords();
  var number = words / wordsPerMinute;
  return number;
}