copyWithDoubleListAttribute method

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

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

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

Implementation

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