Response<T> constructor Null safety

const Response<T>(
  1. {Request? request,
  2. int? statusCode,
  3. Stream<List<int>>? bodyBytes,
  4. String? bodyString,
  5. String? statusText = '',
  6. Map<String, String>? headers = const {},
  7. T? body}
)

Implementation

const Response({
  this.request,
  this.statusCode,
  this.bodyBytes,
  this.bodyString,
  this.statusText = '',
  this.headers = const {},
  this.body,
});