calculateReadTime method

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

Calculates the average reading time in seconds based on word count and words per minute.

Implementation

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