bindStream method

void bindStream(
  1. Stream<Map<K, V>> stream

Binds an existing Stream<Map> to this RxMap. You can bind multiple sources to update the value. Closing the subscription will happen automatically when the observer Widget (GetX or Obx) gets unmounted from the Widget tree.


void bindStream(Stream<Map<K, V>> stream) {
  _subscriptions[stream] = stream.listen((va) => value = va);