finish method

  1. @override
int finish(
  1. Builder fbBuilder
)
override

Finish building, and store into the fbBuilder.

Implementation

@override
int finish(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();
}