RejectionEventContext constructor

RejectionEventContext({
  1. @Deprecated('This field is deprecated.') Any? commandMessage,
  2. String? stacktrace,
  3. Command? command,
})

Implementation

factory RejectionEventContext({
@$core.Deprecated('This field is deprecated.')
  $5.Any? commandMessage,
  $core.String? stacktrace,
  $43.Command? command,
}) {
  final _result = create();
  if (commandMessage != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.commandMessage = commandMessage;
  }
  if (stacktrace != null) {
    _result.stacktrace = stacktrace;
  }
  if (command != null) {
    _result.command = command;
  }
  return _result;
}