Connect constructor

Connect({
  1. Device? sender,
  2. Device? receiver,
})

Implementation

factory Connect({
  Device? sender,
  Device? receiver,
}) {
  final $result = create();
  if (sender != null) {
    $result.sender = sender;
  }
  if (receiver != null) {
    $result.receiver = receiver;
  }
  return $result;
}