parse static method

dynamic parse(
  1. String uri
)

Parse the given string and returns a DartSIP.URI instance or null if it is an invalid URI.

Implementation

static dynamic parse(String uri) {
  try {
    return Grammar.parse(uri, 'SIP_URI');
  } catch (_) {
    return null;
  }
}