RxnInt class
- Inheritance
-
- Object
- RxInterface<
int?> - RxNotifier<
int?> - Rx<
int?> - RxnInt
- 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 - 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 → int
-
Available on Rx<
Returns the sign of this integer.int> , provided by the RxIntExt extensionno setter - sign → int?
-
Available on Rx<
Returns the sign of this integer.int?> , provided by the RxnIntExt extensionno setter -
stream
→ Stream<
int?> -
no setterinherited
- string → String
-
Same as
toString()
but using a getter.no setterinherited -
subject
↔ GetStream<
int?> -
getter/setter pairinherited
- value ↔ int?
-
Returns the current value
getter/setter pairinherited
Methods
-
abs(
) → int - Returns the absolute value of this integer.
-
abs(
) → int? - Returns the absolute value of this integer.
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
addListener(
GetStream< int?> rxGetx) → void -
This is an internal method.
Subscribe to changes on the inner stream.
inherited
-
bindStream(
Stream< int?> stream) → void -
Binds an existing
Stream<T>
to this Rxinherited -
call(
[int? v]) → int? -
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<
Returnsint> , provided by the RxIntExt extensionthis
. -
ceil(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
ceilToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
close(
) → void -
Closes the subscriptions for this Rx, releasing the resources.
inherited
-
floor(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
floor(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
floorToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
floorToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
gcd(
int other) → int -
Available on Rx<
Returns the greatest common divisor of this integer andint> , provided by the RxIntExt extensionother
. -
gcd(
int other) → int? -
Available on Rx<
Returns the greatest common divisor of this integer andint?> , provided by the RxnIntExt extensionother
. -
listen(
void onData(int?), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< int?> -
inherited
-
listenAndPump(
void onData(int? event), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< int?> -
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(int? data)) → Stream< R> -
inherited
-
modInverse(
int modulus) → int -
Available on Rx<
Returns the modular multiplicative inverse of this integer moduloint> , provided by the RxIntExt extensionmodulus
. -
modInverse(
int modulus) → int? -
Available on Rx<
Returns the modular multiplicative inverse of this integer moduloint?> , provided by the RxnIntExt extensionmodulus
. -
modPow(
int exponent, int modulus) → int -
Available on Rx<
Returns this integer to the power ofint> , provided by the RxIntExt extensionexponent
modulomodulus
. -
modPow(
int exponent, int modulus) → int? -
Available on Rx<
Returns this integer to the power ofint?> , provided by the RxnIntExt 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
-
round(
) → int? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis
. -
round(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
roundToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
roundToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
toJson(
) → dynamic -
Returns the json representation of
value
.inherited -
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
. -
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
. -
toString(
) → String -
A string representation of this object.
inherited
-
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(
int? 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 RxnIntExt extensionthis
. -
truncate(
) → int -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Rx<
Returnsint?> , provided by the RxnIntExt extensionthis.toDouble()
. -
truncateToDouble(
) → double -
Available on Rx<
Returnsint> , provided by the RxIntExt extensionthis.toDouble()
. -
update(
void fn(int? 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 &(
int other) → int - Bit-wise and operator.
-
operator &(
int other) → int? - Bit-wise and operator.
-
operator +(
int other) → RxnInt - Addition operator.
-
operator -(
int other) → RxnInt - Subtraction 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 ==(
Object o) → bool -
This equality override works for _RxImpl instances and the internal
values.
inherited
-
operator >>(
int shiftAmount) → int -
Available on Rx<
Shift the bits of this integer to the right byint> , provided by the RxIntExt extensionshiftAmount
. -
operator >>(
int shiftAmount) → int? -
Available on Rx<
Shift the bits of this integer to the right byint?> , provided by the RxnIntExt extensionshiftAmount
. -
operator ^(
int other) → int - Bit-wise exclusive-or operator.
-
operator ^(
int other) → int? - Bit-wise exclusive-or operator.
-
operator unary-(
) → int - Return the negative value of this integer.
-
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.