TextSource constructor Null safety

TextSource(
  1. SourceText source,
  2. List<Sentence> sentences
)

Instantiates a TextSource from the source.

Implementation

factory TextSource(SourceText source, List<Sentence> sentences) =>
    _TextSourceImpl(source, sentences);