Status constructor

Status({
  1. Empty? ok,
  2. Error? error,
  3. Event? rejection,
})

Implementation

factory Status({
  $29.Empty? ok,
  $45.Error? error,
  $46.Event? rejection,
}) {
  final _result = create();
  if (ok != null) {
    _result.ok = ok;
  }
  if (error != null) {
    _result.error = error;
  }
  if (rejection != null) {
    _result.rejection = rejection;
  }
  return _result;
}