Sets loading state with a delay.
Future<void> setLoadingWithDelay(bool loading, Duration delay) async { await Future.delayed(delay); _isLoading = loading; notifyListeners(); }