gracePeriod property

Duration gracePeriod
getter/setter pair

How long an image stays in the cache after it was last loaded, fetched, retained or released before it becomes eligible for eviction.

This covers the gap between loading an image and mounting the component that retains it. Raise it if a component loads many images one after the other before it is mounted.

Implementation

Duration gracePeriod = const Duration(seconds: 5);