34 lines
1.0 KiB
Dart
Executable File
34 lines
1.0 KiB
Dart
Executable File
// import 'package:external_repos/external_repos.dart';
|
|
// import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
|
// import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
// import 'package:uae_stat/config/injector.dart';
|
|
// import 'package:uae_stat/domain/repos/t_favorites_repo.dart';
|
|
|
|
// part 'favorites_use_case.g.dart';
|
|
|
|
// @Riverpod(keepAlive: true)
|
|
// class FavoritesUseCase extends _$FavoritesUseCase {
|
|
// static final _repo = getIt.call<TFavoritesRepo>();
|
|
|
|
// @override
|
|
// Future<ISet<IndicatorEnum>> build() async {
|
|
// final e = await _repo.getAll();
|
|
// return e.toISet();
|
|
// }
|
|
|
|
// Future<void> addNew(IndicatorEnum id) async {
|
|
// await _repo.addNew(id);
|
|
// final oldState = await future;
|
|
// final newState = oldState.add(id);
|
|
// state = AsyncData(newState);
|
|
// }
|
|
|
|
// Future<void> removeExisting(IndicatorEnum id) async {
|
|
// await _repo.removeExisting(id);
|
|
// final oldState = await future;
|
|
// final newState = oldState.remove(id);
|
|
// state = AsyncData(newState);
|
|
// }
|
|
// }
|