isPrimitiveType property

bool isPrimitiveType

Returns true if this Type is primitive: int, double, num, String or bool.

Implementation

bool get isPrimitiveType {
  var self = this;
  return self == int ||
      self == double ||
      self == num ||
      self == String ||
      self == bool;
}