body property
Gets this request's body.
Implementation
@override
String? get body {
if (_body != null) return _body;
if (_bodyBytes != null) {
_body = encoding.decode(_bodyBytes!);
return _body;
}
return '';
}
Sets this request's plain-text body.
Depending on the platform, this may be encoded to bytes prior to sending. Be sure to set encoding if this request body should be encoded with something other than the default utf-8.
Implementation
@override
set body(String? value) {
verifyUnsent();
_body = value;
_bodyBytes = null;
}