RxNum class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinite → bool
-
True if the number is finite; otherwise, false.
no setterinherited
- isInfinite → bool
-
True if the number is positive infinity or negative infinity; otherwise,
false.
no setterinherited
- isNaN → bool
-
True if the number is the double Not-a-Number value; otherwise, false.
no setterinherited
- isNegative → bool
-
True if the number is negative; otherwise, false.
no setterinherited
- ob → num
-
Notify the host to rebuild related consumer widget and then return
the underlying object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
rxAspects
→ Set<
Object> -
finalinherited
- sign → num
-
Returns minus one, zero or plus one depending on the sign and
numerical value of the number.
no setterinherited
- value ↔ dynamic
-
Getter:
getter/setter pairinherited
Methods
-
abs(
) → num -
Returns the absolute value of this num.
inherited
-
addRxAspects(
[Object? aspects]) → void -
Add
aspects
to the Rx aspects. param aspects: Iterable: addaspects
to the rx aspects null: broadcast to the model RxImpl: add(aspects as RxImpl).rxAspects
to the rx aspects : addaspects
to the rx aspectsinherited -
call(
num v) → num -
RxVar(newVal): set new value to the Rx underlying value.
dart:call() works in the same way as operator()
inherited
-
ceil(
) → int -
Returns the least integer no smaller than
this
.inherited -
ceilToDouble(
) → double -
Returns the least double integer value no smaller than
this
.inherited -
clamp(
num lowerLimit, num upperLimit) → num -
Returns this num clamped to be in the range
lowerLimit
-upperLimit
.inherited -
clearRxAspects(
) → void -
Clear all the Rx aspects.
inherited
-
consume(
Widget create(), {Key? key}) → Widget -
Create a consumer widget and connect with the watched variable.
The consumer widget will rebuild whenever the watched variable updates.
inherited
-
copyInfo(
RxImpl< num> other) → void -
Copy info from another Rx variable.
inherited
-
floor(
) → int -
Returns the greatest integer no greater than
this
.inherited -
floorToDouble(
) → double -
Returns the greatest double integer value no greater than
this
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
Synonym of
publishRxAspects()
.inherited -
publishRxAspects(
) → void -
Publish Rx aspects to the host.
inherited
-
remainder(
num other) → num -
Returns the remainder of the truncating division of
this
byother
.inherited -
removeRxAspects(
[Object? aspects]) → void -
Remove
aspects
from the Rx aspects. param aspects: Iterable: removeaspects
from the rx aspects null: don't broadcast to the model RxImpl: remove(aspects as RxImpl).rxAspects
from the rx aspects : removeaspects
from the rx aspectsinherited -
retainRxAspects(
Object aspects) → void -
Retain
aspects
in the Rx aspects. param aspects: Iterable: retain rx aspects in theaspects
RxImpl: retain rx aspects in the(aspects as RxImpl).rxAspects
: retain rx aspects in theaspects
inherited -
round(
) → int -
Returns the integer closest to
this
.inherited -
roundToDouble(
) → double -
Returns the double integer value closest to
this
.inherited -
toDouble(
) → double -
Return this num as a double.
inherited
-
toInt(
) → int -
Truncates this num to an integer and returns the result as an int. */
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toStringAsExponential(
int fractionDigits) → String -
Returns an exponential string-representation of
this
.inherited -
toStringAsFixed(
int fractionDigits) → String -
Returns a decimal-point string-representation of
this
.inherited -
toStringAsPrecision(
int precision) → String -
Converts
this
to a double and returns a string representation with exactlyprecision
significant digits.inherited -
touch(
) → void -
Activate automatic aspect management for this watched variable.
inherited
-
truncate(
) → int -
Returns the integer obtained by discarding any fractional
digits from
this
.inherited -
truncateToDouble(
) → double -
Returns the double integer value obtained by discarding any fractional
digits from the double value of
this
.inherited
Operators
-
operator %(
num other) → num -
Euclidean modulo operator.
inherited
-
operator *(
num other) → num -
Multiplication operator.
inherited
-
operator +(
num other) → RxNum - Addition operator. dart doesn't have operator++
-
operator -(
num other) → RxNum - Subtraction operator.
-
operator /(
num other) → double -
Division operator.
inherited
-
operator <(
num other) → bool -
Relational less than operator.
inherited
-
operator <=(
num other) → bool -
Relational less than or equal operator.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
num other) → bool -
Relational greater than operator.
inherited
-
operator >=(
num other) → bool -
Relational greater than or equal operator.
inherited
-
operator unary-(
) → num -
Negate operator.
inherited
-
operator ~/(
num other) → int -
Truncating division operator.
inherited