allowedTypeNames top-level property
The names of types that can be used as Map keys.
Used in _checkSafeKeyType
to provide a helpful error with unsupported
types.
Implementation
Iterable<String> get allowedTypeNames => const [
'Object',
'dynamic',
'enum',
'String',
].followedBy(instances.map((i) => i.coreTypeName));