ENVData constructor

ENVData({
  1. bool isLoading = false,
  2. Future<void> onError(
    1. Response error
    )?,
  3. Future<void> onProgress(
    1. int start,
    2. int total
    )?,
  4. Future<void> onSuccess(
    1. Response success
    )?,
  5. Future<void> onException(
    1. Object exception
    )?,
  6. String? baseUrl,
  7. Future<void> onTimeout(
    1. Object exception
    )?,
  8. Duration? timeoutDuration,
  9. bool? debug = false,
  10. bool ignoreBadCertificate = false,
  11. RequestData? globalData,
  12. Future<void> onAuthError(
    1. Response error,
    2. BuildContext context
    )?,
  13. String? replacementId,
  14. bool processOnlyThisPage = true,
})

Implementation

ENVData({
  this.isLoading = false,
  this.onError,
  this.onProgress,
  this.onSuccess,
  this.onException,
  this.baseUrl,
  this.onTimeout,
  this.timeoutDuration,
  this.debug = false,
  this.ignoreBadCertificate = false,
  this.globalData,
  this.onAuthError,
  this.replacementId,
  this.processOnlyThisPage = true,
});