isPrimitiveList<T> method
Returns true
if this decoded value represents a list of
primitive values (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
could not represent a
primitive type.
Implementation
bool isPrimitiveList<T>() => checkPrimitiveList<T>(value);