cbConnectionEventFromRawValue function

CBConnectionEvent cbConnectionEventFromRawValue(
  1. int rawValue
)

Implementation

CBConnectionEvent cbConnectionEventFromRawValue(int rawValue) {
  return switch (rawValue) {
    1 => CBConnectionEvent.peerConnected,
    0 || _ => CBConnectionEvent.peerDisconnected,
  };
}