encodeIterableOrNull<E> method

  1. @override
void encodeIterableOrNull<E>(
  1. Iterable<E>? value, {
  2. Encodable<E>? using,
})
override

Encodes a nullable iterable of E.

Optionally takes an Encodable function to encode each element.

Implementation

@override
void encodeIterableOrNull<E>(Iterable<E>? value, {Encodable<E>? using}) {
  if (value == null) {
    encodeNull();
  } else {
    encodeIterable(value, using: using);
  }
}