EP2pSend.fromValue constructor

EP2pSend.fromValue(
  1. int value
)

Implementation

factory EP2pSend.fromValue(int value) {
  switch (value) {
    case 0:
      return EP2pSend.unreliable;
    case 1:
      return EP2pSend.unreliableNoDelay;
    case 2:
      return EP2pSend.reliable;
    case 3:
      return EP2pSend.reliableWithBuffering;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EP2pSend'. The value was: '$value'",
      );
  }
}