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