copyWithBoolListAttribute method

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

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

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

Implementation

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