ReactiveNum extension
Extension for Reactive<num> providing common numeric utilities.
Properties
- isNegative → bool
-
Available on Reactive<
Returns true if the value is negative (< 0).num> , provided by the ReactiveNum extensionno setter - isPositive → bool
-
Available on Reactive<
Returns true if the value is positive (> 0).num> , provided by the ReactiveNum extensionno setter - isZero → bool
-
Available on Reactive<
Returns true if the value is exactly zero.num> , provided by the ReactiveNum extensionno setter
Methods
-
clamp(
int min, int max) → void -
Available on Reactive<
Clamps the numeric value betweennum> , provided by the ReactiveNum extensionminandmax. -
dec(
[num by = 1]) → void -
Available on Reactive<
Alias for decrement.num> , provided by the ReactiveNum extension -
decrement(
[num by = 1]) → void -
Available on Reactive<
Decrements the numeric value bynum> , provided by the ReactiveNum extensionby(default: 1). -
inc(
[num by = 1]) → void -
Available on Reactive<
Alias for increment.num> , provided by the ReactiveNum extension -
increment(
[num by = 1]) → void -
Available on Reactive<
Increments the numeric value bynum> , provided by the ReactiveNum extensionby(default: 1). -
roundTo(
int digits) → void -
Available on Reactive<
Rounds the numeric value tonum> , provided by the ReactiveNum extensiondigitsdecimal places.