OrderRepository class

Constructors

OrderRepository(IOrderService _orderService)

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

deleteBuyOrder(String shoppingOrderId) Future<bool?>
deleteSellOrder(String orderId) Future<bool?>
getBuyOrderById(String shoppingOrderId) Future<BuyItem?>
getBuyOrdersByUserId(String userId, String scrollId) Future<BuyItemData?>
getCategory(String details) Future<String?>
getCurrentActiveOrderOfRetailer(String retailerId) Future<List<OrderList>?>
getCurrentActiveOrderOfShopper(String shopperId) Future<List<OrderList>?>
getCurrentActiveOrdersOfConsumer(String consumerId) Future<List<OrderList>?>
getCurrentShoppingListOfConsumer(String consumerId) Future<List<ShoppingListConfiguration>?>
getOrderByConsumer(String consumerId) Future<List<OrderList>?>
getOrderById(String id) Future<OrderList?>
getOrderByRetailer(String retailerId) Future<List<OrderList>?>
getProductImages(String details) Future<List<String>?>
getSellOrderById(String orderId) Future<SellItem?>
getSellOrdersByLocation(String location, String scrollId) Future<SellItemData?>
getSellOrdersByUserId(String userId) Future<List<SellItem>?>
getShoppingListById(String id) Future<ShoppingListConfiguration?>
getTagLine(String details) Future<String?>
getUnits(String details) Future<String?>
isFood(String details) Future<bool?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postBuyOrder(Map<String, dynamic> body) Future<BuyItem?>
postSellOrder(Map<String, dynamic> body) Future<SellItem?>
submitOrder(Map<String, dynamic> body) Future<OrderList?>
submitShoppingLiat(Map<String, dynamic> body) Future<ShoppingListConfiguration?>
toString() String
A string representation of this object.
inherited
updateBuyOrder(String shoppingOrderId, Map<String, dynamic> body) Future<BuyItem?>
updateOrder(String orderId, Map<String, dynamic> body) Future<OrderList?>
updateSellOrder(String orderId, Map<String, dynamic> body) Future<SellItem?>
updateShoppingList(String shoppingListId, Map<String, dynamic> body) Future<ShoppingListConfiguration?>

Operators

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

Static Methods

getInstance() OrderRepository?
initialize(IOrderService _service) → void