Error constructor

Error({
  1. String? event,
  2. String? error,
})

Implementation

factory Error({
  $core.String? event,
  $core.String? error,
}) {
  final $result = create();
  if (event != null) {
    $result.event = event;
  }
  if (error != null) {
    $result.error = error;
  }
  return $result;
}