encodeIterableOrNull<E> method
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);
}
}