DetectedLanguage class
The automatically detected text language.
Constructors
- DetectedLanguage({required String name, required String code, required double confidence})
- The automatically detected text language.
-
DetectedLanguage.fromJson(Map<
String, dynamic> json) -
Creates this object from a json Map.
factory
Properties
- code → String
-
ISO 639-1 code like 'en', 'en-US', or 'ca-ES-valencia'.
final
- confidence → double
-
How confident this language was chosen.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Language name like 'French' or 'English (US)'.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, String? code, double? confidence}) → DetectedLanguage - Copies the object with the specified values changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object into a json Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited