Retrofit constructor

Retrofit({
  1. String api = "",
  2. Method method = Method.POST,
  3. ContentType contentType = ContentType.json,
  4. int hostType = 0,
  5. String cacheKey = "",
  6. int cacheTime = 0,
  7. bool enableIntervalRefresh = true,
})

Implementation

Retrofit({
  this.api = "",
  this.method = Method.POST,
  this.contentType = ContentType.json,
  this.hostType = 0,
  this.cacheKey = "",
  this.cacheTime = 0,
  this.enableIntervalRefresh = true,
});