oryksaTvSubtitleLines function

List<String> oryksaTvSubtitleLines(
  1. String text, {
  2. int max = 90,
})

The subtitle lines of text: one sentence per line, sentences longer than max characters cut at a comma or a space.

Implementation

List<String> oryksaTvSubtitleLines(String text, {int max = 90}) => [
      for (final s in oryksaTvSentences(text)) ..._cut(s, max),
    ];