LanguagePrediction class
A language code and its probability. Used as part of the output of a language detector.
- Inheritance
-
- Object
- BaseLanguagePrediction
- LanguagePrediction
Constructors
- LanguagePrediction.new({required String languageCode, required double probability})
- A language code and its probability. Used as part of the output of a language detector.
-
LanguagePrediction.native(Pointer<
LanguageDetectorPrediction> ? _pointer) - Initializes a LanguagePrediction instance as a wrapper around native memory.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
The i18n language / locale code for the prediction.
no setteroverride
- probability → double
-
The probability for the prediction.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
fromNativeArray(
Pointer< LanguageDetectorPrediction> structs, int count) → Iterable<LanguagePrediction> -
Accepts a pointer to a list of structs, and a count representing the length
of the list, and returns a list of pure-Dart
Category
instances.