readAsStringSync abstract method Null safety

String readAsStringSync(
  1. {Encoding encoding = utf8}
)

Synchronously reads the entire file contents as a string using the given Encoding.

Throws a FileSystemException if the operation fails.

Implementation

String readAsStringSync({Encoding encoding = utf8});