iceGatheringStateforString function

RTCIceGatheringState iceGatheringStateforString(
  1. String? state
)

Implementation

RTCIceGatheringState iceGatheringStateforString(String? state) {
  switch (state) {
    case 'new':
      return RTCIceGatheringState.RTCIceGatheringStateNew;
    case 'gathering':
      return RTCIceGatheringState.RTCIceGatheringStateGathering;
    case 'complete':
      return RTCIceGatheringState.RTCIceGatheringStateComplete;
  }
  return RTCIceGatheringState.RTCIceGatheringStateNew;
}