isKeyStringable function
Returns true
if keyType
can be automatically converted to/from String –
and is therefore usable as a key in a Map.
Implementation
bool isKeyStringable(DartType keyType) =>
keyType.isEnum || instances.any((inst) => inst.matches(keyType));