RxDouble class
- Inheritance
-
- Object
- RxInterface<
double> - RxNotifier<
double> - Rx<
double> - RxDouble
- Available extensions
Properties
- canUpdate → bool
-
no setterinherited
- firstRebuild ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sentToStream ↔ bool
-
getter/setter pairinherited
- sign → double
-
Available on Rx<
Returns the sign of the double's numerical value.double> , provided by the RxDoubleExt extensionno setter -
stream
→ Stream<
double> -
no setterinherited
- string → String
-
Same as
toString()
but using a getter.no setterinherited -
subject
↔ GetStream<
double> -
getter/setter pairinherited
- value ↔ double
-
Returns the current value
getter/setter pairinherited
Methods
-
abs(
) → double -
Available on Rx<
Returns the absolute value of this double.double> , provided by the RxDoubleExt extension -
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addListener(
GetStream< double> rxGetx) → void -
This is an internal method.
Subscribe to changes on the inner stream.
inherited
-
bindStream(
Stream< double> stream) → void -
Binds an existing
Stream<T>
to this Rxinherited -
call(
[double? v]) → double -
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 -
ceil(
) → int -
Available on Rx<
Returns the least integer no smaller thandouble> , provided by the RxDoubleExt extensionthis
. -
ceilToDouble(
) → double -
Available on Rx<
Returns the least integer double value no smaller thandouble> , provided by the RxDoubleExt extensionthis
. -
close(
) → void -
Closes the subscriptions for this Rx, releasing the resources.
inherited
-
floor(
) → int -
Available on Rx<
Returns the greatest integer no greater thandouble> , provided by the RxDoubleExt extensionthis
. -
floorToDouble(
) → double -
Available on Rx<
Returns the greatest integer double value no greater thandouble> , provided by the RxDoubleExt extensionthis
. -
listen(
void onData(double), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< double> -
inherited
-
listenAndPump(
void onData(double event), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< double> -
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(double? 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
-
round(
) → int -
Available on Rx<
Returns the integer closest todouble> , provided by the RxDoubleExt extensionthis
. -
roundToDouble(
) → double -
Available on Rx<
Returns the integer double value closest todouble> , provided by the RxDoubleExt extensionthis
. -
toJson(
) → dynamic -
Returns the json representation of
value
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
trigger(
double 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 -
truncate(
) → int -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromdouble> , provided by the RxDoubleExt extensionthis
. -
truncateToDouble(
) → double -
Available on Rx<
Returns the integer double value obtained by discarding any fractional digits fromdouble> , provided by the RxDoubleExt extensionthis
. -
update(
void fn(double? 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 %(
num other) → double -
Available on Rx<
double> , provided by the RxDoubleExt extension -
operator *(
num other) → double -
Available on Rx<
Multiplication operator.double> , provided by the RxDoubleExt extension -
operator +(
num other) → Rx< double> -
Available on Rx<
Addition operator.double> , provided by the RxDoubleExt extension -
operator -(
num other) → Rx< double> -
Available on Rx<
Subtraction operator.double> , provided by the RxDoubleExt extension -
operator /(
num other) → double -
Available on Rx<
Division operator.double> , provided by the RxDoubleExt extension -
operator ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited
-
operator unary-(
) → double -
Available on Rx<
Negate operator. */double> , provided by the RxDoubleExt extension -
operator ~/(
num other) → int -
Available on Rx<
Truncating division operator.double> , provided by the RxDoubleExt extension