isStringMap function

bool isStringMap(
  1. DartType type
)

Implementation

bool isStringMap(DartType type) {
  if (type is! InterfaceType || !type.isDartCoreMap) return false;
  if (type.typeArguments.length != 2) return false;
  return typeDisplayName(type.typeArguments[0]) == 'String';
}