bindBool method
Implementation
void bindBool(E element, Stream<bool> stream, [bool initial = false]) {
if (initial) {
add(element);
} else {
remove(element);
}
stream.listen((bool value) {
if (value) {
add(element);
} else {
remove(element);
}
});
}