lastUpdated property

DateTime? lastUpdated

DateTime of last fromNetwork call. This will be updated when fromNetwork call either succeeds or fails. You can use this value to decide if you need to refresh your data.

lastUpdated is NOT updated after fromStorage or fromMemory.

Null lastUpdated means there was not a successful fromNetwork call already.

Implementation

DateTime? get lastUpdated => _lastUpdated;