fromFile static method

Future<List<Resource>> fromFile(
  1. String path
)

Accepts a path to a file in ndjson format. It opens the file and then calls the from NdJson function

Implementation

static Future<List<Resource>> fromFile(String path) async {
  final String file = await File(path).readAsString();
  return fromNdJson(file);
}