text property

Future<String> get text

Promise which resolves to a text representation of response body.

Implementation

Future<String> get text => content!.then(
  (content) =>
      content is String ? content : utf8.decode(content as List<int>),
);