INNER CODE UNIT · Dart

fromString

flutter-webrtc/dart-sip-ua · lib/src/constants.dart:119

  static SipMethod? fromString(String? name) {
    if (name != null) {
      String cleanName = name.toUpperCase();
      for (SipMethod method in SipMethod.values) {
        if (getName(method) == cleanName) {
          return method;
        }
      }
      return null;
    }
    return null;
  }
}

/* SIP Response Reasons
   * DOC: https://www.iana.org/assignments/sip-parameters
   * Copied from https://github.com/versatica/OverSIP/blob/master/lib/oversip/sip/constants.rb#L7
   */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…