somCodeSpecsAreas top-level property
CodeSpecsAreaCatalog
get
somCodeSpecsAreas
The CodeSpecs area catalogue this package ships.
The 27 areas transcribed from codespecs_mapping.md §4.1 +
§4.4.3 + §4.4.6 — the input every runtime's
spec_codespecs_extract surface reads.
Parsed on first use and cached, so importing this library costs nothing until the catalogue is actually read.
import 'package:tom_specs_model/codespecs_areas.dart';
final extract = extractCodeSpecs(doc, model,
catalog: somCodeSpecsAreas);
This is the same content as the shipped
generated-doc/codespecs/codespecs_areas.json; that file
remains the interchange artifact for the eight non-Dart
runtimes.
Implementation
CodeSpecsAreaCatalog get somCodeSpecsAreas =>
_somCodeSpecsAreas ??= CodeSpecsAreaCatalog.fromJson(
jsonDecode(somCodeSpecsAreasJson) as Map<String, dynamic>,
);