RxxBool class
- Inheritance
-
- Object
- RxInterface<
bool> - RxNotifier<
bool> - Rx<
bool> - RxBool
- RxxBool
- Mixed-in types
- Available extensions
Properties
- canUpdate → bool
-
no setterinherited
- firstRebuild ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFalse → bool
-
Available on Rx<
bool> , provided by the RxBoolExt extensionno setter - isTrue → bool
-
Available on Rx<
bool> , provided by the RxBoolExt extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentToStream ↔ bool
-
getter/setter pairinherited
-
state
↔ Rx<
RxStatus> -
getter/setter pairinherited
-
stream
→ Stream<
bool> -
no setterinherited
- string → String
-
Same as
toString()
but using a getter.no setterinherited -
subject
↔ GetStream<
bool> -
getter/setter pairinherited
- value ↔ bool
-
Returns the current value
getter/setter pairinherited
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addListener(
GetStream< bool> rxGetx) → void -
This is an internal method.
Subscribe to changes on the inner stream.
inherited
-
bindStream(
Stream< bool> stream) → void -
Binds an existing
Stream<T>
to this Rxinherited -
call(
[bool? v]) → bool -
updates the value to
null
and adds it to the Stream. Even with null-safety coming, is still an important feature to support, ascall()
doesn't acceptnull
values. For instance,InputDecoration.errorText
has to be null to not show the "error state".inherited -
close(
) → void -
Closes the subscriptions for this Rx, releasing the resources.
inherited
-
listen(
void onData(bool), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< bool> -
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
onInit
or 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 -
Makes a direct update of value adding it to the Stream
useful when you make use of Rx for custom Types to referesh your UI.
inherited
-
setEmpty(
) → void -
override
-
setError(
{String? message}) → void -
override
-
setLoading(
) → void -
override
-
setLoadingMore(
) → void -
inherited
-
setSuccess(
) → void -
override
-
toggle(
) → Rx< bool> -
Available on Rx<
Toggles the bool value between false and true. A shortcut forbool> , provided by the RxBoolExt extensionflag.value = !flag.value;
FIXME: why return this? fluent interface is not not really a dart thing since we have '..' operator -
toJson(
) → dynamic -
Returns the json representation of
value
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
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(
void 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 ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited
-
operator ^(
bool other) → bool -
operator |(
bool other) → bool