isPrimitive function

bool isPrimitive(
  1. String type
)

Returns true if the base type (nullable-stripped) is a primitive.

Implementation

bool isPrimitive(String type) => primitives.contains(baseType(type));