bindOrSet method

void bindOrSet(
  1. dynamic other
)
override

Binds if other is Stream or RxValue of type T. Sets if other is instance of T

Implementation

void bindOrSet(/* T | Stream<T> | Reactive<T> */ other) {
  if (other is RxValue<T>) {
    bind(other);
  } else if (other is Stream<T>) {
    bindStream(other.cast<T>());
  } else {
    value = other;
  }
}