Requester constructor

Requester(
  1. String baseUrl,
  2. bool ssl, {
  3. required String method,
  4. required String route,
  5. Map<String, String> headers = const {"Content-Type" : "application/json", "Accept" : "application/json"},
  6. Map<String, String> queryParams = const {},
  7. Map<String, String> body = const {},
  8. bool showLoading = true,
  9. BuildContext? context,
})

Implementation

Requester(
  this.baseUrl,
  this.ssl, {
  required this.method,
  required this.route,
  this.headers = const {
    "Content-Type": "application/json",
    "Accept": "application/json"
  },
  this.queryParams = const {},
  this.body = const {},
  this.showLoading = true,
  this.context,
});