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) {
tick();
_packer.packNull();
} else {
encodeIterable(value, using: using);
}
}