Response<T> constructor

const Response<T>({
  1. T? data,
  2. List<T>? result,
  3. String message = '',
  4. String error = '',
  5. bool isCancel = false,
  6. bool isLoading = false,
  7. bool isSuccessful = false,
  8. bool isFailed = false,
  9. dynamic snapshot,
  10. Status status = Status.noContent,
  11. String tag = "",
})

Implementation

const Response({
  this.data,
  this.result,
  this.message = '',
  this.error = '',
  this.isCancel = false,
  this.isLoading = false,
  this.isSuccessful = false,
  this.isFailed = false,
  this.snapshot,
  this.status = Status.noContent,
  this.tag = "",
});