PageBlockPullquote.deserialize constructor

PageBlockPullquote.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PageBlockPullquote.deserialize(BinaryReader reader) {
  // Read [PageBlockPullquote] fields.
  final text = reader.readObject() as RichTextBase;
  final caption = reader.readObject() as RichTextBase;

  // Construct [PageBlockPullquote] object.
  final returnValue = PageBlockPullquote(
    text: text,
    caption: caption,
  );

  // Now return the deserialized [PageBlockPullquote].
  return returnValue;
}