next method
Looks for the next current pattern.
The search starts at index start
in line
.
Returns null if not found or the index of the hit.
Implementation
@override
int? next(String line, [int start = 0]) {
final rc = line.indexOf(toSearch, start);
searchEngine.lastMatch.type = LastMatchType.string;
searchEngine.lastMatch.stringMatch = rc < 0 ? null : toSearch;
searchEngine.lastMatch.position.column = rc;
return rc < 0 ? null : rc;
}