relatica/lib/riverpod_controllers/cache_clear_service.dart

15 wiersze
390 B
Dart
Czysty Zwykły widok Historia

import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'hashtag_service.dart';
import 'notification_services.dart';
part 'cache_clear_service.g.dart';
@riverpod
bool cacheClearService(Ref ref) {
ref.read(hashtagServiceProvider().notifier).clear();
ref.invalidate(notificationsManagerProvider);
return true;
}