pack method
Serialize the object using the given builder, returning the offset.
Implementation
@override
int pack(fb.Builder fbBuilder) {
final int? bytesOffset = bytes == null ? null
: fbBuilder.writeListUint8(bytes!);
fbBuilder.startTable(5);
fbBuilder.addOffset(0, bytesOffset);
fbBuilder.addUint8(1, componentCount);
fbBuilder.addInt8(2, componentType.value);
fbBuilder.addUint32(3, width);
fbBuilder.addUint32(4, height);
return fbBuilder.endTable();
}