expired method

bool expired(
  1. int ttlValue, {
  2. bool ignoreTtl = false,
})

Implementation

bool expired(int ttlValue, {bool ignoreTtl = false}) {
  if (ignoreTtl) {
    return false;
  }
  return DateTime.now().millisecondsSinceEpoch > cachedDate + ttlValue;
}