asPrimitive property

Type get asPrimitive

Implementation

Type get asPrimitive {
  assert(isDartCoreType);
  if (isBool) return bool;
  if (isDateTime) return DateTime;
  if (isDouble) return double;
  if (isInt) return int;
  if (isNum) return num;
  return String;
}