ApiService class

Constructors

ApiService()

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

bid(int id, int amount) Future<ApiResponse<Bid>>
call({required String? endpoint, required Method method, Map<String, dynamic> body = const {}, List<Map<String, dynamic>> files = const []}) Future<Response>
getAuction(int id) Future<ApiResponse<Auction>>
getAuctions(AuctionType auctionType, int page, int perPage) Future<ApiResponse<List<Auction>>>
getUser() Future<ApiResponse<User>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pay(int id, double amount, File receipt) Future<ApiResponse<bool>>
requestTowing(TowingParam param) Future<ApiResponse<Towing>>
toString() String
A string representation of this object.
inherited
updateUser(int userId, File? licenseImage, File? nationalEqamaImage) Future<ApiResponse<bool>>

Operators

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