text property
String
get
text
Get response body as raw text.
Returns the complete response body as a string without any parsing. Useful for plain text responses or when you need the raw content.
Example:
expect(response.text, 'Hello, World!');
expect(response.text.contains('error'), false);
Implementation
String get text => body;