startSearchMode method

Future<void> startSearchMode(
  1. String searchString,
  2. bool matchCase,
  3. bool matchWholeWord
)

Starts the search mode.

Searches the document for searchString and highlights matches. The search is case-sensitive if matchCase is true, and only whole words are matched if matchWholeWord is true.

Implementation

Future<void> startSearchMode(
    String searchString, bool matchCase, bool matchWholeWord) {
  return _channel.invokeMethod(Functions.startSearchMode, <String, dynamic>{
    Parameters.searchString: searchString,
    Parameters.matchCase: matchCase,
    Parameters.matchWholeWord: matchWholeWord
  });
}