loadAll static method

Map<String, List<Map<String, dynamic>>> loadAll({
  1. required String fixturesDir,
  2. required Iterable<String> entities,
})

Loads the fixture records for every entities entry, failing fast with SimulationFixtureError on the first unusable file.

Returns { entity -> records }. Records are decoded fresh from the committed bytes on every call: the fixture files are the single source of truth for demo content.

Implementation

static Map<String, List<Map<String, dynamic>>> loadAll({
  required String fixturesDir,
  required Iterable<String> entities,
}) {
  final result = <String, List<Map<String, dynamic>>>{};
  for (final entity in entities) {
    result[entity] = load(fixturesDir: fixturesDir, entity: entity);
  }
  return result;
}