TextMarked.deserialize constructor

TextMarked.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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