isPrimitive static method

bool isPrimitive(
  1. Object? value
)

Whether value renders as a plain text value rather than a type label.

Implementation

static bool isPrimitive(Object? value) => value is! List && value is! Map;