isCurrentAt method

bool isCurrentAt(
  1. DateTime now
)

Whether the snapshot is still within every included list's validity at now. A snapshot with no recorded expiry is never current.

Implementation

bool isCurrentAt(DateTime now) {
  final until = expires;
  return until != null && !until.add(pdfTrustListExpiryGrace).isBefore(now);
}