isHackerNewsItemUrl method

bool isHackerNewsItemUrl({
  1. String? id,
})

Check string is hacker news url

Implementation

bool isHackerNewsItemUrl({String? id}) {
  var o = hackerNewsUrl?.itemUrl;
  if (o == null) return false;
  return (id == null || o.id == id);
}