TextMention.deserialize constructor

TextMention.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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