copyWith method

TerminalSearchOptions copyWith({
  1. bool? caseSensitive,
  2. bool? matchWholeWord,
  3. bool? useRegex,
})

creates a new TerminalSearchOptions instance based on this one changing the given parameters

Implementation

TerminalSearchOptions copyWith(
    {bool? caseSensitive, bool? matchWholeWord, bool? useRegex}) {
  return TerminalSearchOptions(
    caseSensitive: caseSensitive ?? this.caseSensitive,
    matchWholeWord: matchWholeWord ?? this.matchWholeWord,
    useRegex: useRegex ?? this.useRegex,
  );
}