RxnInt class

Inheritance
Available extensions

Constructors

RxnInt([int? initial])

Properties

bitLength int

Available on Rx<int>, provided by the RxIntExt extension

Returns the minimum number of bits required to store this integer.
no setter
bitLength int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the minimum number of bits required to store this integer.
no setter
firstRebuild bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setterinherited
isEven bool

Available on Rx<int>, provided by the RxIntExt extension

Returns true if and only if this integer is even.
no setter
isEven bool?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns true if and only if this integer is even.
no setter
isOdd bool

Available on Rx<int>, provided by the RxIntExt extension

Returns true if and only if this integer is odd.
no setter
isOdd bool?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns true if and only if this integer is odd.
no setter
listenersLength int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentToStream bool
getter/setter pairinherited
sign int

Available on Rx<int>, provided by the RxIntExt extension

Returns the sign of this integer.
no setter
sign int?

Available on Rx<int?>, provided by the RxnIntExt extension

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

Methods

abs() int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the absolute value of this integer.
abs() int

Available on Rx<int>, provided by the RxIntExt extension

Returns the absolute value of this integer.
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<int?> stream) → void
Binds an existing Stream<T> to this Rx
inherited
call([int? v]) int?
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<int?>, provided by the RxnIntExt extension

Returns this.
ceil() int

Available on Rx<int>, provided by the RxIntExt extension

Returns this.
ceilToDouble() double

Available on Rx<int>, provided by the RxIntExt extension

Returns this.toDouble().
ceilToDouble() double?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.toDouble().
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<int?>, provided by the RxnIntExt extension

Returns this.
floor() int

Available on Rx<int>, provided by the RxIntExt extension

Returns this.
floorToDouble() double?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.toDouble().
floorToDouble() double

Available on Rx<int>, provided by the RxIntExt extension

Returns this.toDouble().
gcd(int other) int

Available on Rx<int>, provided by the RxIntExt extension

Returns the greatest common divisor of this integer and other.
gcd(int other) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the greatest common divisor of this integer and other.
listen(void onData(int?)?, {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<int?>
Calls callback with current value, when the value changes.
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<int>, provided by the RxIntExt extension

Returns the modular multiplicative inverse of this integer modulo modulus.
modInverse(int modulus) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the modular multiplicative inverse of this integer modulo modulus.
modPow(int exponent, int modulus) int

Available on Rx<int>, provided by the RxIntExt extension

Returns this integer to the power of exponent modulo modulus.
modPow(int exponent, int modulus) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this integer to the power of exponent modulo modulus.
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<int>, provided by the RxIntExt extension

Returns this.
round() int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.
roundToDouble() double?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.toDouble().
roundToDouble() double

Available on Rx<int>, provided by the RxIntExt extension

Returns this.toDouble().
toJson() → dynamic
Returns the json representation of value.
inherited
toSigned(int width) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the least significant width bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit in width bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher than width.
toSigned(int width) int

Available on Rx<int>, provided by the RxIntExt extension

Returns the least significant width bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit in width bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher than width.
toString() String
A string representation of this object.
inherited
toUnsigned(int width) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns the least significant width bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher than width.
toUnsigned(int width) int

Available on Rx<int>, provided by the RxIntExt extension

Returns the least significant width bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher than width.
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<int>, provided by the RxIntExt extension

Returns this.
truncate() int?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.
truncateToDouble() double?

Available on Rx<int?>, provided by the RxnIntExt extension

Returns this.toDouble().
truncateToDouble() double

Available on Rx<int>, provided by the RxIntExt extension

Returns this.toDouble().
update(int? 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

Available on Rx<int>, provided by the RxIntExt extension

Bit-wise and operator.
operator &(int other) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Bit-wise and operator.
operator +(int other) RxnInt
Addition operator.
operator -(int other) RxnInt
Subtraction operator.
operator <<(int shiftAmount) int

Available on Rx<int>, provided by the RxIntExt extension

Shift the bits of this integer to the left by shiftAmount.
operator <<(int shiftAmount) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Shift the bits of this integer to the left by shiftAmount.
operator ==(Object o) bool
This equality override works for _RxImpl instances and the internal values.
inherited
operator >>(int shiftAmount) int

Available on Rx<int>, provided by the RxIntExt extension

Shift the bits of this integer to the right by shiftAmount.
operator >>(int shiftAmount) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Shift the bits of this integer to the right by shiftAmount.
operator ^(int other) int

Available on Rx<int>, provided by the RxIntExt extension

Bit-wise exclusive-or operator.
operator ^(int other) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Bit-wise exclusive-or operator.
operator unary-() int

Available on Rx<int>, provided by the RxIntExt extension

Return the negative value of this integer.
operator unary-() int?

Available on Rx<int?>, provided by the RxnIntExt extension

Return the negative value of this integer.
operator |(int other) int

Available on Rx<int>, provided by the RxIntExt extension

Bit-wise or operator.
operator |(int other) int?

Available on Rx<int?>, provided by the RxnIntExt extension

Bit-wise or operator.
operator ~() int

Available on Rx<int>, provided by the RxIntExt extension

The bit-wise negate operator.
operator ~() int?

Available on Rx<int?>, provided by the RxnIntExt extension

The bit-wise negate operator.