hasRegistryMap function

bool hasRegistryMap(
  1. String file, {
  2. required String variable,
  3. required String type,
})

Whether file declares the Map<String, <type>> <variable> registry.

Implementation

bool hasRegistryMap(
  String file, {
  required String variable,
  required String type,
}) =>
    _guardedMap(variable, type).hasMatch(file) ||
    _plainMap(variable, type).hasMatch(file);