PageListItemBlocks.deserialize constructor
PageListItemBlocks.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory PageListItemBlocks.deserialize(BinaryReader reader) {
// Read [PageListItemBlocks] fields.
final flags = reader.readInt32();
final checkbox = (flags & 1) != 0;
final checked = (flags & 2) != 0;
final blocks = reader.readVectorObject<PageBlockBase>();
// Construct [PageListItemBlocks] object.
final returnValue = PageListItemBlocks(
checkbox: checkbox,
checked: checked,
blocks: blocks.items,
);
// Now return the deserialized [PageListItemBlocks].
return returnValue;
}