CartService constructor

CartService(
  1. String userId
)

Creates a CartService instance for a specific user.

Parameters:

  • userId: The ID of the user whose cart is being managed.

Implementation

CartService(this.userId);