searchSet method
Push a new pattern into the engine. Returns the engine's compile result; an empty pattern is always reported as valid (matches the UI's behavior for "no pattern → no error indicator").
Implementation
bool searchSet(
String pattern, {
TerminalSearchOptions options = const TerminalSearchOptions(),
}) {
_searchPattern = pattern;
_searchOptions = options;
final ok = _engine?.searchSet(pattern, options: options) ?? false;
_searchValid = ok || pattern.isEmpty;
notifyListeners();
return ok;
}