isStale property

bool get isStale

Whether this tile should be considered stale

Usually this is implemented by storing the timestamp at which the tile becomes stale, and comparing that to the current timestamp.

Implementation

bool get isStale => DateTime.timestamp().isAfter(staleAt);