Response<T> constructor
Response<T> ({
- T? data,
- Headers? headers,
- required RequestOptions requestOptions,
- bool? isRedirect,
- int? statusCode,
- String? statusMessage,
- List<
RedirectRecord> ? redirects, - 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 ?? [];
}