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? bodyOffset =
      _body == null ? null : fbBuilder.writeListUint8(_body!);
  final int? typeOffset =
      _type == null ? null : fbBuilder.writeString(_type!);
  fbBuilder.startTable(2);
  fbBuilder.addOffset(0, bodyOffset);
  fbBuilder.addOffset(1, typeOffset);
  return fbBuilder.endTable();
}