Future<String> readAsString({Encoding encoding})

Read the resource content as a string.

The content is decoded into a string using an Encoding. If no other encoding is provided, it defaults to UTF-8.

Source

Future<String> readAsString({Encoding encoding});