isPrimitiveType static method

bool isPrimitiveType(
  1. Type type
)

Implementation

static bool isPrimitiveType(Type type) {
  return type == String ||
      type == int ||
      type == double ||
      type == num ||
      type == bool ||
      type == Null;
}