Response constructor Null safety

Response(
  1. {required Request request,
  2. int? statusCode,
  3. String? body,
  4. HttpConnectionInfo? connectionInfo,
  5. HttpHeaders? headers}
)

Implementation

Response({
  required this.request,
  this.statusCode, this.body, this.connectionInfo, this.headers});