bindStream method

void bindStream(
  1. Stream<List<E>> stream
)

Binds an existing Stream<List> to this RxList. 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.

Implementation

void bindStream(Stream<List<E>> stream) {
  _subscriptions[stream] = stream.listen((va) => value = va);
}