parse static method

GooglePlusUrl? parse(
  1. String url
)

Implementation

static GooglePlusUrl? parse(String url) {
  var userName = GooglePlusUserNameUrl.parse(url);
  var id = GooglePlusIdUrl.parse(url);
  if (userName == null && id == null) return null;
  return GooglePlusUrl._(id, userName);
}