TextElement class



TextElement({String? text, String? recognizedLanguage, Rect? boundingBox, List<Offset>? corners})
TextElement.fromMap(Map data)


boundingBox Rect?
Returns the axis-aligned bounding rectangle of the detected text.
getter/setter pair
corners List<Offset>?
Gets the four corner points in clockwise direction starting with top-left.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
recognizedLanguage String?
Gets prevailing language in the text, if any. There is data only on Android
getter/setter pair
recognizedLanguages List<String>?
Detected language from text recognition. The ISO 639-1 two-letter language code if that is defined (e.g. “en”), or else the ISO 639-2 three-letter code if that is defined, or else a Google-specific code. There is data only on IOS There is data only in block and lines, and element is null
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Gets the recognized text in the TextElementTextLineTextBlock.
getter/setter pair


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


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