isMapOfString function
Returns true
if map
is Map<String,String>.
Implementation
bool isMapOfString(Map? map) {
if (map == null) return false;
if (map is Map<String, String>) return true;
if (map.isEmpty) return false;
if (listNotMatchesAll(map.keys, (k) => (k is String))) return false;
if (listNotMatchesAll(map.values, (k) => (k is String))) return false;
return true;
}