assign method

void assign(
  1. Map<K, V> other
)

Replaces all entries with those from other in a single notification.

Implementation

void assign(Map<K, V> other) {
  value
    ..clear()
    ..addAll(other);
  refresh();
}