setAll Method

Add or update multiple entries in the map, raising onChanged only once after all items are set, if the contents of the map changed as a result. This is more efficient than calling set in a loop when listeners need not be notified of each individual change.

setAll(items: Iterable<>): void

Parameter Type Description
items Iterable<> The entries to add or update.

Returns - void

Defined in

Last Updated: 24 September, 2026