Response<ItemType> constructor

Response<ItemType>({
  1. ItemType? result,
  2. Object? error,
  3. required int code,
  4. Map? headers,
  5. bool fromDatabase = false,
})

Implementation

Response({
  this.result,
  this.error,
  required this.code,
  this.headers,
  this.fromDatabase = false,
});