fromPrimitiveList<T> static method
Creates an EncodableValue from list
.
Primitive values are of the types String, num, bool or Null. As subtypes of num, int or double will be also accepted.
Throws a JsonPreparationError if T
could not represent a
primitive type.
Implementation
static EncodableValue fromPrimitiveList<T>(List<T> list) =>
EncodableValue._(preparePrimitiveList<T>(list));