isDeprecated method

bool isDeprecated({
  1. double? now,
})

check whether cache is deprecated with current time in seconds

Implementation

bool isDeprecated({double? now}) {
  now ??= Time.currentTimestamp;
  return now > _deprecated;
}