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? fileNameOffset =
      _fileName == null ? null : fbBuilder.writeString(_fileName!);
  final int? modTimeOffset =
      _modTime == null ? null : fbBuilder.writeString(_modTime!);
  fbBuilder.startTable(3);
  fbBuilder.addBool(0, _isBinary);
  fbBuilder.addOffset(1, fileNameOffset);
  fbBuilder.addOffset(2, modTimeOffset);
  return fbBuilder.endTable();
}