ResponseBody.fromString constructor
ResponseBody.fromString(})
Implementation
ResponseBody.fromString(
String text,
this.statusCode, {
this.headers = const {},
this.statusMessage,
this.isRedirect = false,
}) : stream = Stream.value(Uint8List.fromList(utf8.encode(text)));