Response<T> constructor

Response<T>({
  1. T? data,
  2. Headers? headers,
  3. required RequestOptions requestOptions,
  4. bool? isRedirect,
  5. int? statusCode,
  6. String? statusMessage,
  7. List<RedirectRecord>? redirects,
  8. Map<String, dynamic>? extra,
})

Implementation

Response({
  this.data,
  Headers? headers,
  required this.requestOptions,
  this.isRedirect,
  this.statusCode,
  this.statusMessage,
  List<RedirectRecord>? redirects,
  Map<String, dynamic>? extra,
}) {
  this.headers = headers ?? Headers();
  this.extra = extra ?? {};
  this.redirects = redirects ?? [];
}