RxInterval class
Reactive interval that emits values at regular intervals
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
int> - Rx<
int> - RxInterval
- Available extensions
Constructors
- RxInterval.new(Duration _interval)
Properties
- abs → int
-
Available on Rx<
Get absolute valueint> , provided by the RxIntExtensions extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isDisposed → bool
-
Whether this Rx instance has been disposed
no setterinherited
- isEven → bool
-
Available on Rx<
Check if number is evenint> , provided by the RxIntExtensions extensionno setter - isNegative → bool
-
Available on Rx<
Check if number is negativeint> , provided by the RxIntExtensions extensionno setter - isOdd → bool
-
Available on Rx<
Check if number is oddint> , provided by the RxIntExtensions extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign → int
-
Available on Rx<
Get sign (-1, 0, or 1)int> , provided by the RxIntExtensions extensionno setter - value ↔ int
-
The current value stored in this notifier.
getter/setter pairinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
call(
) → int -
Call operator for consistent access patterns
inherited
-
decrement(
[int step = 1]) → void -
Available on Rx<
Decrement (convenience method)int> , provided by the RxIntExtensions extension -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
divide(
num divisor) → void -
Available on Rx<
Divide (convenience method)int> , provided by the RxIntExtensions extension -
increment(
[int step = 1]) → void -
Available on Rx<
Increment (convenience method)int> , provided by the RxIntExtensions extension -
modulo(
int divisor) → void -
Available on Rx<
Modulo (convenience method)int> , provided by the RxIntExtensions extension -
multiply(
num factor) → void -
Available on Rx<
Multiply (convenience method)int> , provided by the RxIntExtensions extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
power(
int exponent) → void -
Available on Rx<
Power (convenience method)int> , provided by the RxIntExtensions extension -
refresh(
) → void -
Refresh/notify listeners even if value hasn't changed
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
reset(
) → void -
start(
) → void -
stop(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
tryDecrement(
[int step = 1]) → RxResult< void> -
Available on Rx<
Decrement with error handlingint> , provided by the RxIntExtensions extension -
tryDivide(
num divisor) → RxResult< void> -
Available on Rx<
Divide with error handlingint> , provided by the RxIntExtensions extension -
tryIncrement(
[int step = 1]) → RxResult< void> -
Available on Rx<
Increment with error handlingint> , provided by the RxIntExtensions extension -
tryModulo(
int divisor) → RxResult< void> -
Available on Rx<
Modulo with error handlingint> , provided by the RxIntExtensions extension -
tryMultiply(
num factor) → RxResult< void> -
Available on Rx<
Multiply with error handlingint> , provided by the RxIntExtensions extension -
tryPower(
int exponent) → RxResult< void> -
Available on Rx<
Power with error handlingint> , provided by the RxIntExtensions extension -
update(
int updater(int value)) → void -
Update value using a function
inherited
-
updateIfChanged(
int newValue) → void -
Update the value only if it's different (explicit equality check)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited