encodeObjectOrNull<T> abstract method

void encodeObjectOrNull<T>(
  1. String key,
  2. T? value, {
  3. int? id,
  4. Encodable<T>? using,
})

Encodes a nullable object of type T for the given key or id.

When the value is not null, this behaves the same as encodeObject.

Implementation

void encodeObjectOrNull<T>(String key, T? value, {int? id, Encodable<T>? using});