isPrimitiveValue<T> method
Returns true
if this decoded value represents a primitive value
(specified by T
).
Primitive values are of the types String, num, bool or Null. As they are subtypes of num, int or double will be also accepted.
Throws a JsonCheckingError if T
does not represent a
primitive type.
Implementation
bool isPrimitiveValue<T>() => checkPrimitiveValue<T>(value);