TextFixed.deserialize constructor

TextFixed.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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