TextMatch class

A content-search hit produced by RepositoryAdapter.searchText.

Constructors

TextMatch({required String path, required int line, required int column, required String text, List<String> before = const [], List<String> after = const []})
const
TextMatch.fromJson(Map<String, Object?> json)
factory

Properties

after → List<String>
final
before → List<String>
Context lines before/after the match (empty when no context requested).
final
column → int
1-based column (character offset) of the match within the line.
final
hashCode → int
The hash code for this object.
no setterinherited
line → int
1-based line number of the match.
final
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The full text of the matching line.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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