setColumn method
Sets the value of a column by its name. Used in communication with the database.
Implementation
@override
void setColumn(
String columnName,
value,
) {
switch (columnName) {
case 'id':
id = value;
return;
case 'channel':
channel = value;
return;
case 'message':
message = value;
return;
case 'time':
time = value;
return;
case 'sender':
sender = value;
return;
case 'removed':
removed = value;
return;
case 'attachments':
attachments = value;
return;
default:
throw UnimplementedError();
}
}