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? uriOffset = _uri == null ? null
      : fbBuilder.writeString(_uri!);
  final int? embeddedImageOffset = _embeddedImage?.getOrCreateOffset(fbBuilder);
  fbBuilder.startTable(2);
  fbBuilder.addOffset(0, uriOffset);
  fbBuilder.addOffset(1, embeddedImageOffset);
  return fbBuilder.endTable();
}