TextStrike.deserialize constructor

TextStrike.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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