retrieveContent method

String? retrieveContent(
  1. String path
)

Implementation

String? retrieveContent(String path) {
  final file = fs.file(path);

  if (!file.existsSync()) {
    return null;
  }

  return file.readAsStringSync();
}