RxnBool class
- Inheritance
-
- Object
- Listenable
- GNotifierSingle
- GListenable<
bool?> - Rx<
bool?> - RxnBool
- Available extensions
Properties
- firstRebuild ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
- isFalse → bool
-
Available on Rx<
bool> , provided by the RxBoolExt extensionno setter - isFalse → bool?
-
Available on Rx<
bool?> , provided by the RxnBoolExt extensionno setter - isTrue → bool
-
Available on Rx<
bool> , provided by the RxBoolExt extensionno setter - isTrue → bool?
-
Available on Rx<
bool?> , provided by the RxnBoolExt extensionno setter - listenersLength → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentToStream ↔ bool
-
getter/setter pairinherited
-
stream
→ Stream<
bool?> -
no setterinherited
- string → String
-
Same as
toString()but using a getter.no setterinherited -
subject
→ StreamController<
bool?> -
no setterinherited
- value ↔ bool?
-
The current value of the object. When the value changes, the callbacks
registered with addListener will be invoked.
getter/setter pairinherited
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addListener(
StateUpdateCallback listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
inherited
-
bindStream(
Stream< bool?> stream) → void -
Binds an existing
Stream<T>to this Rxinherited -
call(
[bool? v]) → bool? -
Makes this Rx looks like a function so you can update a new
value using
rx(someOtherValue). Practical to assign the Rx directly to some Widget that has a signature ::onChange( value )inherited -
close(
) → void -
Close the Rx Variable
inherited
-
containsListener(
StateUpdateCallback listener) → bool -
inherited
-
dispose(
) → void -
inherited
-
listen(
ValueChanged< bool?> ? onData, {Function? onError, VoidCallback? onDone, bool? cancelOnError}) → StreamSubscription<bool?> -
Calls
callbackwith current value, when the value changes.inherited -
listenAndPump(
void onData(bool? event), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< bool?> -
Returns a StreamSubscription similar to listen, but with the
added benefit that it primes the stream with the current value, rather
than waiting for the next value. This should not be called in
onInitor anywhere else during the build process.inherited -
map<
R> (R mapper(bool? data)) → Stream< R> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
inherited
-
removeListener(
StateUpdateCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
reportAdd(
StateUpdateCallback disposer) → void -
inherited
-
reportRead(
) → void -
inherited
-
toggle(
) → void -
Available on Rx<
Toggles the bool value between false and true. A shortcut forbool> , provided by the RxBoolExt extensionflag.value = !flag.value; -
toggle(
) → void -
Available on Rx<
Toggles the bool value between false and true. A shortcut forbool?> , provided by the RxnBoolExt extensionflag.value = !flag.value; -
toString(
) → String -
A string representation of this object.
override
-
trigger(
bool? v) → void -
Following certain practices on Rx data, we might want to react to certain
listeners when a value has been provided, even if the value is the same.
At the moment, we ignore part of the process if we
.call(value)with the same value since it holds the value and there's no real need triggering the entire process for the same value inside, but there are other situations where we might be interested in triggering this.inherited -
update(
bool? fn(bool? val)) → void -
Uses a callback to update value internally, similar to refresh,
but provides the current value as the argument.
Makes sense for custom Rx types (like Models).
inherited
Operators
-
operator &(
bool other) → bool -
operator &(
bool other) → bool? -
Available on Rx<
bool?> , provided by the RxnBoolExt extension -
operator ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited
-
operator ^(
bool other) → bool -
operator ^(
bool other) → bool? -
Available on Rx<
bool?> , provided by the RxnBoolExt extension -
operator |(
bool other) → bool -
operator |(
bool other) → bool? -
Available on Rx<
bool?> , provided by the RxnBoolExt extension