KeyboardButtonRow.deserialize constructor
KeyboardButtonRow.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory KeyboardButtonRow.deserialize(BinaryReader reader) {
// Read [KeyboardButtonRow] fields.
final buttons = reader.readVectorObject<KeyboardButtonBase>();
// Construct [KeyboardButtonRow] object.
final returnValue = KeyboardButtonRow(
buttons: buttons,
);
// Now return the deserialized [KeyboardButtonRow].
return returnValue;
}