text property

  1. @override
Future<String> text
override

Reads content body as text and returns a future of String.

Implementation

@override
Future<String> get text async {
  try {
    return await file.readAsString(encoding: encoding);
  } on Exception catch (e) {
    throw ClientException.readingTextFailed(e);
  }
}