delete item implemented

This commit is contained in:
marcoabat
2023-08-06 17:08:39 +02:00
parent f320539daf
commit 23ad1ca28e
2 changed files with 27 additions and 6 deletions

View File

@@ -137,6 +137,10 @@ class DbHelper {
);
}
static Future<void> deleteItemById(int id) async {
await _client.from(itemsTableName).delete().eq('id', id);
}
static Stream<AuthState> get authChangeEventStream =>
_client.auth.onAuthStateChange;
}