import 'package:immich_mobile/services/action.service.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; final actionProvider = NotifierProvider( ActionNotifier.new, dependencies: [ actionServiceProvider, ], ); class ActionNotifier extends Notifier { late final ActionService _service; ActionNotifier() : super(); @override void build() { _service = ref.watch(actionServiceProvider); } Future favorite(List ids) async { await _service.favorite(ids); } Future unFavorite(List ids) async { await _service.unFavorite(ids); } Future archive(List ids) async { await _service.archive(ids); } Future unArchive(List ids) async { await _service.unArchive(ids); } }