isPrimitiveMap property

bool isPrimitiveMap

Returns true if this object is a Map of String keys and primitive values. See isPrimitiveValue.

Implementation

bool get isPrimitiveMap {
  var self = this;
  return self is Map &&
      (self is Map<String, num> ||
          self is Map<String, String> ||
          self is Map<String, bool>);
}