ApiService class

Constructors

ApiService.new({required String baseUrl})

Properties

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

Methods

deleteRequest(String endPoint, Object? body, Map<String, String>? headers) Future<Response>
  • getRequest(String endPoint, Map<String, dynamic>? queryParameters, Map<String, String>? headers) Future<Response>
  • multipartRequest(String endPoint, Map<String, String>? fields, List<MultipartFile>? files, Map<String, String>? headers) Future<Response>
  • noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    patchRequest(String endPoint, Object? body, Map<String, String>? headers) Future<Response>
  • postRequest(String endPoint, Object? body, Map<String, String>? headers) Future<Response>
  • putRequest(String endPoint, Object? body, Map<String, String>? headers) Future<Response>
  • request({required RequestType requestType, required String endPoint, Object? body, Map<String, dynamic>? queryParameters, Map<String, String>? headers, Map<String, String>? fields, List<MultipartFile>? files}) Future<Response>
    toString() String
    A string representation of this object.
    inherited

    Operators

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