2024-12-01 21:41:07 +00:00
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
2024-09-04 19:01:40 +00:00
|
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
|
|
|
|
import 'hashtag_service.dart';
|
2024-11-27 02:18:08 +00:00
|
|
|
import 'notification_services.dart';
|
2024-09-04 19:01:40 +00:00
|
|
|
|
|
|
|
part 'cache_clear_service.g.dart';
|
|
|
|
|
|
|
|
@riverpod
|
2024-12-01 21:41:07 +00:00
|
|
|
bool cacheClearService(Ref ref) {
|
2024-09-04 19:01:40 +00:00
|
|
|
ref.read(hashtagServiceProvider().notifier).clear();
|
2024-11-27 02:18:08 +00:00
|
|
|
ref.invalidate(notificationsManagerProvider);
|
2024-09-04 19:01:40 +00:00
|
|
|
return true;
|
|
|
|
}
|