isPrimitive function

bool isPrimitive(
  1. String? type
)

Implementation

bool isPrimitive(String? type) {
  return ['String', 'int', 'num', 'bool', 'double', 'dynamic'].contains(type);
}