deleteProduct method
- String productId
Deletes a product from Firestore.
Parameters:
- productId: The ID of the product to be deleted.
Returns: A Future<void> that completes when the product is deleted.
Implementation
Future<void> deleteProduct(String productId) async {
await _firestore.collection('products').doc(productId).delete();
}