LanguageDetector class final

Detects the language of input text.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
Whether close has completed.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Releases native, web, and isolate resources owned by this task.
detect(String text) → Future<LanguageDetectorResult>
Detects the languages present in text.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

create(LanguageDetectorOptions options, {TextRuntime? runtime}) → Future<LanguageDetector>
Creates a detector using runtime, or the active platform adapter.