parse static method

GooglePlusIdUrl? parse(
  1. String url
)

Implementation

static GooglePlusIdUrl? parse(String url) {
  var matches = RegExp(r'(?:https?:)?\/\/plus\.google\.com\/(?<id>[0-9]{21})')
      .allMatches(url);
  var id = matches.getValue("id");
  if (id == null) return null;
  return GooglePlusIdUrl._(id);
}