Returns the total duration needed to animate all charCount characters.
charCount
charCount — number of characters in the text.
@override Duration getTotalDuration(int charCount) { return duration; }