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