Future<void> delete(String id) async { final repo = ref.read(viewRepositoryProvider); await repo.delete(id); await refresh(); }