copyWithStringListAttribute method

Attributes copyWithStringListAttribute(
  1. String name,
  2. List<String> value
)

Creates a new Attributes instance with a String List attribute added or updated.

@param name The attribute key @param value The String List value @return A new Attributes instance with the added/updated attribute

Implementation

Attributes copyWithStringListAttribute(String name, List<String> value) {
  return AttributesCreate.create([
    ..._entries.values,
    AttributeCreate.create<List<String>>(name, value),
  ]);
}