isPrimitive method

bool isPrimitive()

Returns true when every key and value is a primitive value.

Implementation

bool isPrimitive() {
  if (this == null) return false;
  return (isTypePrimitive<K>() || this!.keys.every(isValuePrimitive)) &&
      (isTypePrimitive<V>() || this!.values.every(isValuePrimitive));
}