copyWith method

CompletionConfiguration copyWith({
  1. ShellCommandsMap? uninstalls,
  2. ShellCommandsMap? installs,
})

Returns a copy of this CompletionConfiguration with the given fields replaced.

Implementation

CompletionConfiguration copyWith({
  ShellCommandsMap? uninstalls,
  ShellCommandsMap? installs,
}) {
  return CompletionConfiguration._(
    uninstalls: uninstalls ?? this.uninstalls,
    installs: installs ?? this.installs,
  );
}