RxInterval class

Reactive interval that emits values at regular intervals

Inheritance
Available extensions

Constructors

RxInterval.new(Duration _interval)

Properties

abs int

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

Get absolute value
no 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<int>, provided by the RxIntExtensions extension

Check if number is even
no setter
isNegative bool

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

Check if number is negative
no setter
isOdd bool

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

Check if number is odd
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sign int

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

Get sign (-1, 0, or 1)
no 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<int>, provided by the RxIntExtensions extension

Decrement (convenience method)
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<int>, provided by the RxIntExtensions extension

Divide (convenience method)
increment([int step = 1]) → void

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

Increment (convenience method)
modulo(int divisor) → void

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

Modulo (convenience method)
multiply(num factor) → void

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

Multiply (convenience method)
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<int>, provided by the RxIntExtensions extension

Power (convenience method)
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<int>, provided by the RxIntExtensions extension

Decrement with error handling
tryDivide(num divisor) RxResult<void>

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

Divide with error handling
tryIncrement([int step = 1]) RxResult<void>

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

Increment with error handling
tryModulo(int divisor) RxResult<void>

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

Modulo with error handling
tryMultiply(num factor) RxResult<void>

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

Multiply with error handling
tryPower(int exponent) RxResult<void>

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

Power with error handling
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