Records several attributes at once.
void setAttributes(Map<String, Object?> values) => attributes.addAll(values);