RxnNum class
- Inheritance
-
- Object
- RxInterface<
num?> - RxNotifier<
num?> - Rx<
num?> - RxnNum
- Available extensions
Properties
- bitLength → int
-
Available on Rx<
Returns the minimum number of bits required to store this integer.int> , provided by the RxIntExt extensionno setter - bitLength → int?
-
Available on Rx<
Returns the minimum number of bits required to store this integer.int?> , provided by the RxnIntExt extensionno setter - canUpdate → bool
-
no setterinherited
- firstRebuild ↔ bool
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEven → bool
-
Available on Rx<
Returns true if and only if this integer is even.int> , provided by the RxIntExt extensionno setter - isEven → bool?
-
Available on Rx<
Returns true if and only if this integer is even.int?> , provided by the RxnIntExt extensionno setter - isFinite → bool?
-
Available on Rx<
True if the number is finite; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isFinite → bool
-
Available on Rx<
True if the number is finite; otherwise, false.T> , provided by the RxNumExt extensionno setter - isInfinite → bool?
-
Available on Rx<
True if the number is positive infinity or negative infinity; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isInfinite → bool
-
Available on Rx<
True if the number is positive infinity or negative infinity; otherwise, false.T> , provided by the RxNumExt extensionno setter - isNaN → bool?
-
Available on Rx<
True if the number is the double Not-a-Number value; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isNaN → bool
-
Available on Rx<
True if the number is the double Not-a-Number value; otherwise, false.T> , provided by the RxNumExt extensionno setter - isNegative → bool?
-
Available on Rx<
True if the number is negative; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isNegative → bool
-
Available on Rx<
True if the number is negative; otherwise, false.T> , provided by the RxNumExt extensionno setter - isOdd → bool
-
Available on Rx<
Returns true if and only if this integer is odd.int> , provided by the RxIntExt extensionno setter - isOdd → bool?
-
Available on Rx<
Returns true if and only if this integer is odd.int?> , provided by the RxnIntExt extensionno setter - 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 - sign → int
-
Available on Rx<
Returns the sign of this integer.int> , provided by the RxIntExt extensionno setter - sign → double?
-
Available on Rx<
Returns the sign of the double's numerical value.double?> , provided by the RxnDoubleExt extensionno setter - sign → int?
-
Available on Rx<
Returns the sign of this integer.int?> , provided by the RxnIntExt extensionno setter - sign → num?
-
Available on Rx<
Returns minus one, zero or plus one depending on the sign and numerical value of the number.T?> , provided by the RxnNumExt extensionno setter - sign → num
-
Available on Rx<
Returns minus one, zero or plus one depending on the sign and numerical value of the number.T> , provided by the RxNumExt extensionno setter -
stream
→ Stream<
num?> -
no setterinherited
- string → String
-
Same as
toString()
but using a getter.no setterinherited -
subject
↔ GetStream<
num?> -
getter/setter pairinherited
- value ↔ num?
-
Returns the current value
getter/setter pairinherited
Methods
-
abs(
) → int? - Returns the absolute value of this integer.
-
abs(
) → double -
Available on Rx<
Returns the absolute value of this double.double> , provided by the RxDoubleExt extension -
abs(
) → num -
Available on Rx<
Returns the absolute value of this num.T> , provided by the RxNumExt extension -
abs(
) → int - Returns the absolute value of this integer.
-
abs(
) → double? -
Available on Rx<
Returns the absolute value of this double.double?> , provided by the RxnDoubleExt extension -
abs(
) → num? -
Available on Rx<
Returns the absolute value of this num.T?> , provided by the RxnNumExt extension -
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addListener(
GetStream< num?> rxGetx) → void -
This is an internal method.
Subscribe to changes on the inner stream.
inherited
-
bindStream(
Stream< num?> stream) → void -
Binds an existing
Stream<T>
to this Rxinherited -
call(
[num? v]) → num? -
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 thanT?> , provided by the RxnNumExt extensionthis
. -
ceil(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
ceil(
) → int -
Available on Rx<
Returns the least integer no smaller thandouble> , provided by the RxDoubleExt extensionthis
. -
ceil(
) → int -
Available on Rx<
Returns the least integer no smaller thanT> , provided by the RxNumExt extensionthis
. -
ceil(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
ceil(
) → int? -
Available on Rx<
Returns the least integer no smaller thandouble?> , provided by the RxnDoubleExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Rx<
Returns the least integer double value no smaller thandouble?> , provided by the RxnDoubleExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
ceilToDouble(
) → double -
Available on Rx<
Returns the least double integer value no smaller thanT> , provided by the RxNumExt extensionthis
. -
ceilToDouble(
) → double -
Available on Rx<
Returns the least integer double value no smaller thandouble> , provided by the RxDoubleExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Rx<
Returns the least double integer value no smaller thanT?> , provided by the RxnNumExt extensionthis
. -
ceilToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
clamp(
num lowerLimit, num upperLimit) → num -
Available on Rx<
Returns this num clamped to be in the rangeT> , provided by the RxNumExt extensionlowerLimit
-upperLimit
. -
clamp(
num lowerLimit, num upperLimit) → num? -
Available on Rx<
Returns this num clamped to be in the rangeT?> , provided by the RxnNumExt extensionlowerLimit
-upperLimit
. -
close(
) → void -
Closes the subscriptions for this Rx, releasing the resources.
inherited
-
floor(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
floor(
) → int -
Available on Rx<
Returns the greatest integer no greater thanT> , provided by the RxNumExt extensionthis
. -
floor(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
floor(
) → int? -
Available on Rx<
Returns the greatest integer no greater thanT?> , provided by the RxnNumExt extensionthis
. -
floor(
) → int? -
Available on Rx<
Returns the greatest integer no greater thandouble?> , provided by the RxnDoubleExt extensionthis
. -
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 double integer value no greater thanT> , provided by the RxNumExt extensionthis
. -
floorToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
floorToDouble(
) → double -
Available on Rx<
Returns the greatest integer double value no greater thandouble> , provided by the RxDoubleExt extensionthis
. -
floorToDouble(
) → double? -
Available on Rx<
Returns the greatest double integer value no greater thanT?> , provided by the RxnNumExt extensionthis
. -
floorToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
floorToDouble(
) → double? -
Available on Rx<
Returns the greatest integer double value no greater thandouble?> , provided by the RxnDoubleExt extensionthis
. -
gcd(
int other) → int? -
Available on Rx<
Returns the greatest common divisor of this integer andint?> , provided by the RxnIntExt extensionother
. -
gcd(
int other) → int -
Available on Rx<
Returns the greatest common divisor of this integer andint> , provided by the RxIntExt extensionother
. -
listen(
void onData(num?), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< num?> -
inherited
-
listenAndPump(
void onData(num? event), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< num?> -
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(num? data)) → Stream< R> -
inherited
-
modInverse(
int modulus) → int? -
Available on Rx<
Returns the modular multiplicative inverse of this integer moduloint?> , provided by the RxnIntExt extensionmodulus
. -
modInverse(
int modulus) → int -
Available on Rx<
Returns the modular multiplicative inverse of this integer moduloint> , provided by the RxIntExt extensionmodulus
. -
modPow(
int exponent, int modulus) → int? -
Available on Rx<
Returns this integer to the power ofint?> , provided by the RxnIntExt extensionexponent
modulomodulus
. -
modPow(
int exponent, int modulus) → int -
Available on Rx<
Returns this integer to the power ofint> , provided by the RxIntExt extensionexponent
modulomodulus
. -
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
-
remainder(
num other) → num -
Available on Rx<
Returns the remainder of the truncating division ofT> , provided by the RxNumExt extensionthis
byother
. -
remainder(
num other) → num? -
Available on Rx<
Returns the remainder of the truncating division ofT?> , provided by the RxnNumExt extensionthis
byother
. -
round(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
round(
) → int? -
Available on Rx<
Returns the integer closest toT?> , provided by the RxnNumExt extensionthis
. -
round(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
round(
) → int? -
Available on Rx<
Returns the integer closest todouble?> , provided by the RxnDoubleExt extensionthis
. -
round(
) → int -
Available on Rx<
Returns the integer closest toT> , provided by the RxNumExt extensionthis
. -
round(
) → int -
Available on Rx<
Returns the integer closest todouble> , provided by the RxDoubleExt extensionthis
. -
roundToDouble(
) → double -
Available on Rx<
Returns the double integer value closest toT> , provided by the RxNumExt extensionthis
. -
roundToDouble(
) → double? -
Available on Rx<
Returns the integer double value closest todouble?> , provided by the RxnDoubleExt extensionthis
. -
roundToDouble(
) → double -
Available on Rx<
Returns the integer double value closest todouble> , provided by the RxDoubleExt extensionthis
. -
roundToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
roundToDouble(
) → double? -
Available on Rx<
Returns the double integer value closest toT?> , provided by the RxnNumExt extensionthis
. -
roundToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
toDouble(
) → double -
Available on Rx<
Return this num as a double.T> , provided by the RxNumExt extension -
toDouble(
) → double? -
Available on Rx<
Return this num as a double.T?> , provided by the RxnNumExt extension -
toInt(
) → int? -
Available on Rx<
Truncates this num to an integer and returns the result as an int. */T?> , provided by the RxnNumExt extension -
toInt(
) → int -
Available on Rx<
Truncates this num to an integer and returns the result as an int. */T> , provided by the RxNumExt extension -
toJson(
) → dynamic -
Returns the json representation of
value
.inherited -
toSigned(
int width) → int? -
Available on Rx<
Returns the least significantint?> , provided by the RxnIntExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toSigned(
int width) → int -
Available on Rx<
Returns the least significantint> , provided by the RxIntExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toString(
) → String -
A string representation of this object.
inherited
-
toStringAsExponential(
[int? fractionDigits]) → String -
Available on Rx<
Returns an exponential string-representation ofT> , provided by the RxNumExt extensionthis
. -
toStringAsExponential(
[int? fractionDigits]) → String? -
Available on Rx<
Returns an exponential string-representation ofT?> , provided by the RxnNumExt extensionthis
. -
toStringAsFixed(
int fractionDigits) → String? -
Available on Rx<
Returns a decimal-point string-representation ofT?> , provided by the RxnNumExt extensionthis
. -
toStringAsFixed(
int fractionDigits) → String -
Available on Rx<
Returns a decimal-point string-representation ofT> , provided by the RxNumExt extensionthis
. -
toStringAsPrecision(
int precision) → String? -
Available on Rx<
ConvertsT?> , provided by the RxnNumExt extensionthis
to a double and returns a string representation with exactlyprecision
significant digits. -
toStringAsPrecision(
int precision) → String -
Available on Rx<
ConvertsT> , provided by the RxNumExt extensionthis
to a double and returns a string representation with exactlyprecision
significant digits. -
toUnsigned(
int width) → int -
Available on Rx<
Returns the least significantint> , provided by the RxIntExt extensionwidth
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
toUnsigned(
int width) → int? -
Available on Rx<
Returns the least significantint?> , provided by the RxnIntExt extensionwidth
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
trigger(
num? 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<
Returnsint> , provided by the RxIntExt extensionthis
. -
truncate(
) → int? -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromT?> , provided by the RxnNumExt extensionthis
. -
truncate(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
truncate(
) → int -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromdouble> , provided by the RxDoubleExt extensionthis
. -
truncate(
) → int -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromT> , provided by the RxNumExt extensionthis
. -
truncate(
) → int? -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromdouble?> , provided by the RxnDoubleExt extensionthis
. -
truncateToDouble(
) → double -
Available on Rx<
Returns the double integer value obtained by discarding any fractional digits from the double value ofT> , provided by the RxNumExt extensionthis
. -
truncateToDouble(
) → double -
Available on Rx<
Returns the integer double value 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 RxnDoubleExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Rx<
Returns the double integer value obtained by discarding any fractional digits from the double value ofT?> , provided by the RxnNumExt extensionthis
. -
truncateToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
truncateToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
update(
void fn(num? 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) → num - Euclidean modulo operator.
-
operator %(
num other) → double -
Available on Rx<
double> , provided by the RxDoubleExt extension -
operator %(
num other) → num? - Euclidean modulo operator.
-
operator %(
num other) → double? -
Available on Rx<
double?> , provided by the RxnDoubleExt extension -
operator &(
int other) → int? - Bit-wise and operator.
-
operator &(
int other) → int - Bit-wise and operator.
-
operator *(
num other) → double -
Available on Rx<
Multiplication operator.double> , provided by the RxDoubleExt extension -
operator *(
num other) → num? - Multiplication operator.
-
operator *(
num other) → num - Multiplication operator.
-
operator *(
num other) → double? -
Available on Rx<
Multiplication operator.double?> , provided by the RxnDoubleExt extension -
operator +(
num other) → Rx< double?> ? -
Available on Rx<
Addition operator.double?> , provided by the RxnDoubleExt extension -
operator +(
num other) → Rx< double> -
Available on Rx<
Addition operator.double> , provided by the RxDoubleExt extension -
operator +(
num other) → num? -
operator -(
num other) → Rx< double> -
Available on Rx<
Subtraction operator.double> , provided by the RxDoubleExt extension -
operator -(
num other) → num? - Subtraction operator.
-
operator -(
num other) → Rx< double?> ? -
Available on Rx<
Subtraction operator.double?> , provided by the RxnDoubleExt extension -
operator /(
num other) → double? - Division operator.
-
operator /(
num other) → double? -
Available on Rx<
Division operator.double?> , provided by the RxnDoubleExt extension -
operator /(
num other) → double -
Available on Rx<
Division operator.double> , provided by the RxDoubleExt extension -
operator /(
num other) → double - Division operator.
-
operator <(
num other) → bool - Relational less than operator.
-
operator <(
num other) → bool? - Relational less than operator.
-
operator <<(
int shiftAmount) → int -
Available on Rx<
Shift the bits of this integer to the left byint> , provided by the RxIntExt extensionshiftAmount
. -
operator <<(
int shiftAmount) → int? -
Available on Rx<
Shift the bits of this integer to the left byint?> , provided by the RxnIntExt extensionshiftAmount
. -
operator <=(
num other) → bool - Relational less than or equal operator.
-
operator <=(
num other) → bool? - Relational less than or equal operator.
-
operator ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited
-
operator >(
num other) → bool - Relational greater than operator.
-
operator >(
num other) → bool? - Relational greater than operator.
-
operator >=(
num other) → bool? - Relational greater than or equal operator.
-
operator >=(
num other) → bool - Relational greater than or equal operator.
-
operator >>(
int shiftAmount) → int? -
Available on Rx<
Shift the bits of this integer to the right byint?> , provided by the RxnIntExt extensionshiftAmount
. -
operator >>(
int shiftAmount) → int -
Available on Rx<
Shift the bits of this integer to the right byint> , provided by the RxIntExt extensionshiftAmount
. -
operator ^(
int other) → int - Bit-wise exclusive-or operator.
-
operator ^(
int other) → int? - Bit-wise exclusive-or operator.
-
operator unary-(
) → double? -
Available on Rx<
Negate operator. */double?> , provided by the RxnDoubleExt extension -
operator unary-(
) → num - Negate operator.
-
operator unary-(
) → int? - Return the negative value of this integer.
-
operator unary-(
) → double -
Available on Rx<
Negate operator. */double> , provided by the RxDoubleExt extension -
operator unary-(
) → num? - Negate operator.
-
operator unary-(
) → int - Return the negative value of this integer.
-
operator |(
int other) → int? - Bit-wise or operator.
-
operator |(
int other) → int - Bit-wise or operator.
-
operator ~(
) → int? - The bit-wise negate operator.
-
operator ~(
) → int - The bit-wise negate operator.
-
operator ~/(
num other) → int? - Truncating division operator.
-
operator ~/(
num other) → int - Truncating division operator.
-
operator ~/(
num other) → int? -
Available on Rx<
Truncating division operator.double?> , provided by the RxnDoubleExt extension -
operator ~/(
num other) → int -
Available on Rx<
Truncating division operator.double> , provided by the RxDoubleExt extension