showFindReplace method

void showFindReplace({
  1. bool showReplace = false,
})

Shows the Find (or Find & Replace) floating bar.

Implementation

void showFindReplace({bool showReplace = false}) {
  searchStateNotifier.value = searchState.copyWith(
    isBarVisible: true,
    isReplaceExpanded: showReplace,
  );
  if (searchState.query.isNotEmpty) {
    _performSearch();
  } else {
    _editorWidgetState?.rebuild();
  }
}