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? dataOffset =
      _data == null ? null : fbBuilder.writeString(_data!);
  final int? keyIdOffset =
      _keyId == null ? null : fbBuilder.writeString(_keyId!);
  fbBuilder.startTable(2);
  fbBuilder.addOffset(0, dataOffset);
  fbBuilder.addOffset(1, keyIdOffset);
  return fbBuilder.endTable();
}