updateAttributes method
Update attributes with name
and value
if both are not null.
Returns attributes value by querying name
even if attributes
is not updated.
Implementation
String updateAttributes(String name, String value) {
attributes[name] = value;
return attributes[name]!;
}