Response<D> constructor

Response<D>({
  1. required int status,
  2. D? data,
  3. Object? error,
  4. bool isCancelled = false,
})

Implementation

Response(
    {required this.status, this.data, this.error, this.isCancelled = false})
    : hasError = error != null;