Highlight class
Provides information that you can use to highlight a search result so that your users can quickly identify terms in the response.
Constructors
- Highlight({required int beginOffset, required int endOffset, bool? topAnswer, HighlightType? type})
-
Highlight.fromJson(Map<
String, dynamic> json) -
factory
Properties
- beginOffset → int
-
The zero-based location in the response string where the highlight starts.
final
- endOffset → int
-
The zero-based location in the response string where the highlight ends.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topAnswer → bool?
-
Indicates whether the response is the best response. True if this is the
best response; otherwise, false.
final
- type → HighlightType?
-
The highlight type.
final
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