isPrimitiveType function

bool isPrimitiveType(
  1. Type type
)

Checks if a type is a primitive type

Implementation

bool isPrimitiveType(Type type) =>
    type == int ||
    type == double ||
    type == String ||
    type == bool ||
    type == num;