encodeNullableListBytes<T> static method
Encodes a list of nullable items:
[4B count][for each: 1B hasValue][item bytes (only if hasValue)].
Implementation
static Uint8List encodeNullableListBytes<T>(
List<T?> items,
void Function(RecordWriter w, T item) writeItem,
) {
final w = RecordWriter();
RecordWriterBase.writeNullableListPayload(w, items, writeItem);
return w.takeFramedBytes();
}