fromString method Null safety

Future<Sentence> fromString(
  1. String sentence,
  2. TextAnalyzerConfiguration configuration,
  3. TokenFilter? tokenFilter,
  4. [Zone? zone]
)

Factory function that returns a Future of Sentence from the sentence using the configuration.

The sentence tokens are filtered using tokenFilter.

Implementation

static Future<Sentence> fromString(String sentence,
        TextAnalyzerConfiguration configuration, TokenFilter? tokenFilter,
        [Zone? zone]) =>
    _SentenceImpl.fromString(sentence, configuration, tokenFilter, zone);