update method

DevToolExecutionContext update({
  1. ArgResults? argResults,
  2. String? commandName,
  3. void usageException(
    1. String message
    )?,
  4. bool? verbose,
})

Return a copy of this instance with optional updates; any field that does not have an updated value will remain the same.

Implementation

DevToolExecutionContext update({
  ArgResults? argResults,
  String? commandName,
  void Function(String message)? usageException,
  bool? verbose,
}) =>
    DevToolExecutionContext(
      argResults: argResults ?? this.argResults,
      commandName: commandName ?? this.commandName,
      usageException: usageException ?? this.usageException,
      verbose: verbose ?? this.verbose,
    );