Future<void> delete(int index) async { final list = await getAll(); list.removeAt(index); await save(list); }