isSimpleType function

bool isSimpleType(
  1. 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;