RxDouble class

Constructors

RxDouble([double initial])

Properties

canUpdate bool
read-only, inherited
firstRebuild bool
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isFinite bool
True if the number is finite; otherwise, false. [...]
read-only, inherited
isInfinite bool
True if the number is positive infinity or negative infinity; otherwise, false.
read-only, inherited
isNaN bool
True if the number is the double Not-a-Number value; otherwise, false.
read-only, inherited
isNegative bool
True if the number is negative; otherwise, false. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sign double
Returns the sign of the double's numerical value. [...]
read-only
stream Stream<double>
read-only, inherited
string String
Same as toString() but using a getter.
read-only, inherited
subject StreamController<double>
read / write, inherited
value double
Returns the current value
read / write, inherited

Methods

abs() double
Returns the absolute value of this double.
addListener(Stream<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 Rx
inherited
call([double v]) double
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
ceil() int
Returns the least integer no smaller than this. [...]
ceilToDouble() double
Returns the least integer double value no smaller than this. [...]
clamp(num lowerLimit, num upperLimit) num
Returns this num clamped to be in the range lowerLimit-upperLimit. [...]
inherited
close() → void
Closes the subscriptions for this Rx, releasing the resources.
inherited
floor() int
Returns the greatest integer no greater than this. [...]
floorToDouble() double
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
map<R>(R mapper(double data)) Stream<R>
inherited
nil() → void
updates the value to null and adds it to the Stream. Even with null-safety coming, is still an important feature to support, as call() doesn't accept null values. For instance, InputDecoration.errorText has to be null to not show the "error state". [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
remainder(num other) num
Returns the remainder of the truncating division of this by other. [...]
inherited
round() int
Returns the integer closest to this. [...]
roundToDouble() double
Returns the integer double value closest to this. [...]
toDouble() double
Return this num as a double. [...]
inherited
toInt() int
Truncates this num to an integer and returns the result as an int. */
inherited
toJson() → dynamic
Returns the json representation of value.
inherited
toString() String
A string representation of this object. [...]
inherited
toStringAsExponential([int fractionDigits]) String
Returns an exponential string-representation of this. [...]
inherited
toStringAsFixed(int fractionDigits) String
Returns a decimal-point string-representation of this. [...]
inherited
toStringAsPrecision(int precision) String
Converts this to a double and returns a string representation with exactly precision significant digits. [...]
inherited
truncate() int
Returns the integer obtained by discarding any fractional digits from this. [...]
truncateToDouble() double
Returns the integer double value obtained by discarding any fractional digits from this. [...]
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
Euclidean modulo operator. [...]
operator *(num other) double
Multiplication operator.
operator +(num other) RxDouble
Addition operator.
operator -(num other) RxDouble
Subtraction operator.
operator /(num other) double
Division operator.
operator <(num other) bool
Relational less than operator.
inherited
operator <=(num other) bool
Relational less than or equal operator.
inherited
operator ==(dynamic o) bool
This equality override works for _RxImpl instances and the internal values.
inherited
operator >(num other) bool
Relational greater than operator.
inherited
operator >=(num other) bool
Relational greater than or equal operator.
inherited
operator unary-() double
Negate operator. */
operator ~/(num other) int
Truncating division operator. [...]