staleAt property

DateTime staleAt
final

The calculated time at which this tile becomes stale (UTC)

Tile providers should use isStale to check whether a tile is stale, instead of manually comparing this to the current timestamp.

This may have been calculated based off an HTTP response's headers using CachedMapTileMetadata.fromHttpHeaders, or it may be custom.

Implementation

final DateTime staleAt;