RequestApi.customMethod constructor

RequestApi.customMethod({
  1. required String method,
  2. Map<String, dynamic> bodyJson = const {},
  3. required String url,
  4. Map<String, String>? headers,
  5. List<MultipartFile> files = const [],
  6. Map<String, String> body = const {},
  7. bool enableCache = false,
})

Implementation

RequestApi.customMethod({
  required this.method,
  this.bodyJson = const {},
  required String url,
  this.headers,
  this.files = const [],
  this.body = const {},
  this.enableCache = false,
}) : uri = Uri.parse(url);