DetectionResult class

The result of a detection request.

Inheritance

Constructors

DetectionResult({required String text, required String language, required num score, required bool translationSupported, required bool transliterationSupported, List<DetectionResult>? alternatives})
const
DetectionResult.fromJson(Map<String, dynamic> json)
factory

Properties

alternatives List<DetectionResult>?
final
hashCode int
The hash code for this object.
no setterinherited
language String
The detected language.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score num
Likelihood of the language being correct, from 0-1.
finalinherited
scores Map<String, num>
Returns a map of all possible detected languages and their scores.
no setter
text String
The original text that was used to generate the request.
final
translationSupported bool
Whether translation is supported for this language.
finalinherited
transliterationSupported bool
Whether transliteration is supported for this language.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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