Response<ValueType> constructor
Response<ValueType> ({})
Implementation
factory Response({
dynamic body,
int statusCode = 200,
Map<String, dynamic>? headers,
String? mimeType,
String? charset = kDefaultCharset,
List<Cookie>? cookies,
}) {
return StringResponse(
body: body?.toString(),
statusCode: statusCode,
headers: headers,
mimeType: mimeType,
charset: charset,
cookies: cookies) as Response<ValueType>;
}