RequestBody.text constructor
Creates a plain-text body.
Implementation
factory RequestBody.text(String text, {String? contentType}) => RequestBody._(
type: BodyType.text,
value: text,
contentType: contentType ?? 'text/plain; charset=utf-8',
);