parse static method

Implementation

static FacebookProfileIdUrl? parse(String url) {
  var matches = RegExp(
          r'(?:https?:)?\/\/(?:www\.)facebook.com/(?:profile.php\?id=)?(?<id>[0-9]+)')
      .allMatches(url);
  var id = matches.getValue("id");
  if (id == null) return null;
  return FacebookProfileIdUrl._(id);
}