read method

  1. @override
Future<String> read(
  1. String absPath
)
override

Reads the UTF-8 contents of file absPath.

Implementation

@override
Future<String> read(String absPath) async {
  final file = File(absPath);
  if (!file.existsSync()) {
    throw WorkspaceException('no such file: $absPath');
  }
  return file.readAsStringSync();
}