Response<D> constructor

Response<D>({
  1. String message = 'ok',
  2. D? data,
  3. String? body,
  4. dynamic error,
  5. int statusCode = 0,
  6. Map<String, List<String>>? headers,
  7. dynamic extra,
})

Implementation

Response({
  this.message = 'ok',
  this.data,
  this.body,
  this.error,
  this.statusCode = 0,
  this.headers,
  this.extra,
});