bindBoolValue method

void bindBoolValue(
  1. E element,
  2. RxValue<bool> other
)

Implementation

void bindBoolValue(E element, RxValue<bool> other) {
  if (other.value == true) {
    add(element);
  } else {
    remove(element);
  }
  other.values.listen((bool? value) {
    if (value == true)
      add(element);
    else
      remove(element);
  });
}