replaceAllMatches method

void replaceAllMatches()

Implementation

void replaceAllMatches() {
  if (matches.isNotEmpty && searchText != '' && replaceText != null) {
    textController.text = textController.text.replaceAll(
      searchText,
      replaceText!,
    );
    regenerateMatches(newText: searchText);
  }
}