isSimple function

bool isSimple (dynamic value)

Checks if the value is primitive, DateTime, List, or Map

Implementation

bool isSimple(value) => isPrimitive(value) || value is DateTime || value is List || value is Map || value is Set;