TextAnchor.deserialize constructor
TextAnchor.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory TextAnchor.deserialize(BinaryReader reader) {
// Read [TextAnchor] fields.
final text = reader.readObject() as RichTextBase;
final name = reader.readString();
// Construct [TextAnchor] object.
final returnValue = TextAnchor(
text: text,
name: name,
);
// Now return the deserialized [TextAnchor].
return returnValue;
}