RxnDouble class

Inheritance
Available extensions

Constructors

RxnDouble([double? initial])

Properties

firstRebuild bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setterinherited
listenersLength int
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<double>, provided by the RxDoubleExt extension

Returns the sign of the double's numerical value.
no setter
sign double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the sign of the double's numerical value.
no setter
stream Stream<double?>
no setterinherited
string String
Same as toString() but using a getter.
no setterinherited
subject StreamController<double?>
no setterinherited
value double?
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
getter/setter pairinherited

Methods

abs() double

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the absolute value of this double.
abs() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the absolute value of this double.
addError(Object error, [StackTrace? stackTrace]) → void
inherited
addListener(GetStateUpdate listener) Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) Disposer
inherited
bindStream(Stream<double?> stream) → void
Binds an existing Stream<T> to this Rx
inherited
call([double? v]) double?
Makes a direct update of value adding it to the Stream useful when you make use of Rx for custom Types to refresh your UI.
inherited
ceil() int

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the least integer no smaller than this.
ceil() int?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the least integer no smaller than this.
ceilToDouble() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the least integer double value no smaller than this.
ceilToDouble() double

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the least integer double value no smaller than this.
close() → void
Close the Rx Variable
inherited
containsId(Object id) bool
inherited
containsListener(GetStateUpdate listener) bool
inherited
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
floor() int?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the greatest integer no greater than this.
floor() int

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the greatest integer no greater than this.
floorToDouble() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the greatest integer double value no greater than this.
floorToDouble() double

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the greatest integer double value no greater than this.
listen(void onData(double?)?, {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<double?>
Calls callback with current value, when the value changes.
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
notifyGroupChildrens(Object id) → void
inherited
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
reportAdd(VoidCallback disposer) → void
inherited
reportRead() → void
inherited
round() int

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the integer closest to this.
round() int?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the integer closest to this.
roundToDouble() double

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the integer double value closest to this.
roundToDouble() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the integer double value closest to this.
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<double?>, provided by the RxnDoubleExt extension

Returns the integer obtained by discarding any fractional digits from this.
truncate() int

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the integer obtained by discarding any fractional digits from this.
truncateToDouble() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Returns the integer double value obtained by discarding any fractional digits from this.
truncateToDouble() double

Available on Rx<double>, provided by the RxDoubleExt extension

Returns the integer double value obtained by discarding any fractional digits from this.
update(double? 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<double?>, provided by the RxnDoubleExt extension

operator *(num other) double

Available on Rx<double>, provided by the RxDoubleExt extension

Multiplication operator.
operator *(num other) double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Multiplication operator.
operator +(num other) Rx<double>

Available on Rx<double>, provided by the RxDoubleExt extension

Addition operator.
operator +(num other) Rx<double?>?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Addition operator.
operator -(num other) Rx<double>

Available on Rx<double>, provided by the RxDoubleExt extension

Subtraction operator.
operator -(num other) Rx<double?>?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Subtraction operator.
operator /(num other) double

Available on Rx<double>, provided by the RxDoubleExt extension

Division operator.
operator /(num other) double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Division operator.
operator ==(Object o) bool
This equality override works for _RxImpl instances and the internal values.
inherited
operator unary-() double

Available on Rx<double>, provided by the RxDoubleExt extension

Negate operator. */
operator unary-() double?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Negate operator. */
operator ~/(num other) int

Available on Rx<double>, provided by the RxDoubleExt extension

Truncating division operator.
operator ~/(num other) int?

Available on Rx<double?>, provided by the RxnDoubleExt extension

Truncating division operator.