checkAndRefreshIfExpired method
Check and reset if data is expired
Similar to SmartPaginationCubit, this checks if the current data has expired and refreshes if necessary.
Implementation
Future<void> checkAndRefreshIfExpired() async {
if (isDataExpired && _currentQuery != null) {
await refresh();
}
}