parse static method
Implementation
static TwitterStatusUrl? parse(String url) {
var matches = RegExp(
r'(?:https?:)?\/\/(?:[A-z]+\.)?twitter\.com\/@?(?<username>[A-z0-9_]+)\/status\/(?<tweet_id>[0-9]+)\/?')
.allMatches(url);
var username = matches.getValue("username");
var tweetId = matches.getValue("tweet_id");
if (username == null || tweetId == null) return null;
return TwitterStatusUrl._(username, tweetId);
}