isSimpleType function

bool isSimpleType (Type type)

Checks if the type is either primitive (see isPrimitiveType), List, Set, or Map;

Implementation

bool isSimpleType(Type type) =>
    isPrimitiveType(type) || type == List || type == Map || type == Set;