updateAttributes method

String updateAttributes(
  1. String name,
  2. String value
)

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]!;
}