FakeStoreApiPackage class

Constructors

FakeStoreApiPackage()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCart(Cart cart) → Future<Either<String, void>>
createProduct(Product product) → Future<Either<String, void>>
createUser(User user) → Future<Either<String, void>>
deleteCart(int id) → Future<Either<String, void>>
deleteProduct(int id) → Future<Either<String, void>>
deleteUser(int id) → Future<Either<String, void>>
getCart(int id) → Future<Either<String, Cart>>
getCarts() → Future<Either<String, List<Cart>>>
getProduct(int id) → Future<Either<String, Product>>
getProducts() → Future<Either<String, List<Product>>>
getUser(int id) → Future<Either<String, User>>
getUsers() → Future<Either<String, List<User>>>
login(LoginRequest loginRequest) → Future<Either<String, LoginResponse>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateCart(Cart cart) → Future<Either<String, void>>
updateProduct(Product product) → Future<Either<String, void>>
updateUser(User user) → Future<Either<String, void>>

Operators

operator ==(Object other) → bool
The equality operator.
inherited