isStaled method

bool isStaled()

Checks if response is staled from maxStale option.

Implementation

bool isStaled() {
  return maxStale?.isBefore(DateTime.now()) ?? false;
}