TextCashtag.deserialize constructor

TextCashtag.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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