markSeenByShortLink method

bool markSeenByShortLink(
  1. String shortLink
)

Implementation

bool markSeenByShortLink(String shortLink) {
  //ugly hack to patch cached
  bool hit = false;
  _data.forEach((key, value) {
    if (value.shortLink == shortLink) {
      if (!value.flags.isSeen) {
        value.flags.isSeen = true;
        hit = true;
      }
    }
  });
  return hit;
}