MatchedSubstring class

Represents a substring within the prediction description that matches the query.

This class is used to highlight parts of the description that match the user's input.

Constructors

MatchedSubstring({int? length, int? offset})
Creates a MatchedSubstring instance.
MatchedSubstring.fromJson(dynamic json)
Creates a MatchedSubstring from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int?
The length of the matched substring.
final
offset int?
The starting position of the matched substring.
final
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