TextUnderline.deserialize constructor

TextUnderline.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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