readFile method

Future<String> readFile(
  1. String path
)

Implementation

Future<String> readFile(String path) async {
  if (!path.endsWith('.harnCollection')) {
    throw Exception('Invalid file extension. Only .harn files are allowed.');
  }

  return await HarnDBPlatform.instance.read(path);
}