Success constructor

Success({
  1. ProducedEvents? producedEvents,
  2. ProducedCommands? producedCommands,
  3. Event? rejection,
})

Implementation

factory Success({
  ProducedEvents? producedEvents,
  ProducedCommands? producedCommands,
  $46.Event? rejection,
}) {
  final _result = create();
  if (producedEvents != null) {
    _result.producedEvents = producedEvents;
  }
  if (producedCommands != null) {
    _result.producedCommands = producedCommands;
  }
  if (rejection != null) {
    _result.rejection = rejection;
  }
  return _result;
}