copyWithIntListAttribute method

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

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

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

Implementation

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