TextClassifier constructor

TextClassifier(
  1. TextClassifierOptions _options
)

Utility to analyze text via MediaPipe's text classification task.

Implementation

TextClassifier(this._options) : _readyCompleter = Completer<void>() {
  _createIsolate(_options).then((results) {
    _events = results.$1;
    _sendPort = results.$2;
    _readyCompleter.complete();
  });
}