isStackexchangeUrl method

bool isStackexchangeUrl({
  1. String? user,
  2. String? id,
  3. String? community,
})

Check string is stack exchange url

Implementation

bool isStackexchangeUrl({String? user, String? id, String? community}) {
  var o = stackexchangeUrl;
  if (o == null) return false;
  return (user == null || o.userName == user) &&
      (id == null || o.id == id) &&
      (community == null || o.community == community);
}