NetworkResponse<T> constructor

const NetworkResponse<T>({
  1. required int statusCode,
  2. T? data,
  3. String? body,
  4. Map<String, String> headers = const <String, String>{},
  5. bool isSuccess = true,
  6. String? error,
})

Implementation

const NetworkResponse({
  required this.statusCode,
  this.data,
  this.body,
  this.headers = const <String, String>{},
  this.isSuccess = true,
  this.error,
});