Response constructor

Response({
  1. dynamic data,
  2. int statusCode = -1,
  3. String? error,
  4. dynamic rawData,
  5. bool? isSuccessful,
})

Implementation

Response({
  this.data,
  this.statusCode =
      -1, // -1 will be returned if the response couldn't be processed somehow
  this.error,
  this.rawData,
  this.isSuccessful,
});