RxDuration class

A reactive Duration

Inheritance
Implemented types
Available Extensions

Constructors

RxDuration(Duration value)
Create a reactive Duration

Properties

hashCode int
The hash code for this object.
no setterinherited
inDays int
The number of entire days spanned by this Duration.
no setteroverride
inHours int
The number of entire hours spanned by this Duration.
no setteroverride
inMicroseconds int
The number of whole microseconds spanned by this Duration.
no setteroverride
inMilliseconds int
The number of whole milliseconds spanned by this Duration.
no setteroverride
inMinutes int
The number of whole minutes spanned by this Duration.
no setteroverride
inSeconds int
The number of whole seconds spanned by this Duration.
no setteroverride
isNegative bool
Whether this Duration is negative.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<Duration>
Stream of value changes
no setterinherited
unregisteredValue Duration
Read the current value without calling register
no setterinherited
value Duration
Reactive primitives do not expose their value getter since all methods are available on the RxPrimitive
getter/setter pairinherited

Methods

abs() Duration
Creates a new Duration representing the absolute length of this Duration.
override
compareTo(Duration other) int
Compares this Duration to other, returning zero if the values are equal.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Notify listeners with the current value
inherited
notifyWithValue(Duration value) → void
Notify listeners with the given value
inherited
register() → void
Register with the current zone's RxRegistrar if it exists
inherited
run(RxAction action, {bool notify = true}) bool
Run action with registration and notifications disabled. Will notify after action is completed if notify is true and the child implementation decides a notification should be sent.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(num factor) Duration
Multiplies this Duration by the given factor and returns the result as a new Duration object.
override
operator +(Duration other) Duration
Adds this Duration and other and returns the sum as a new Duration object.
override
operator -(Duration other) Duration
Subtracts other from this Duration and returns the difference as a new Duration object.
override
operator <(Duration other) bool
Whether this Duration is shorter than other.
override
operator <=(Duration other) bool
Whether this Duration is shorter than or equal to other.
override
operator ==(Object other) bool
Returns true if both RxValue values are equal
inherited
operator >(Duration other) bool
Whether this Duration is longer than other.
override
operator >=(Duration other) bool
Whether this Duration is longer than or equal to other.
override
operator unary-() Duration
Creates a new Duration with the opposite direction of this Duration.
override
operator ~/(int quotient) Duration
Divides this Duration by the given quotient and returns the truncated result as a new Duration object.
override