DetectionAlternative class

An alternative result of a detection request.

Inheritance

Constructors

DetectionAlternative({required String language, required num score, required bool translationSupported, required bool transliterationSupported})
const
DetectionAlternative.fromJson(Map<String, dynamic> json)
factory

Properties

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
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