fromPrimitiveValue<T> static method
Creates an EncodableValue from value
.
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 fromPrimitiveValue<T>(T value) =>
EncodableValue._(preparePrimitiveValue<T>(value));