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