HttpResponse.from constructor

HttpResponse.from({
  1. required int statusCode,
  2. required Map<String, dynamic> body,
})

Returns the new instance of HttpResponse based on statusCode and body.

Implementation

HttpResponse.from({required this.statusCode, required this.body});