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? outputOffset =
      _output == null ? null : fbBuilder.writeListUint8(_output!);
  final int? errorOffset =
      _error == null ? null : fbBuilder.writeString(_error!);
  fbBuilder.startTable(2);
  fbBuilder.addOffset(0, outputOffset);
  fbBuilder.addOffset(1, errorOffset);
  return fbBuilder.endTable();
}