RxString class

A specialized Rx for String values with additional convenience methods.

Inheritance

Constructors

RxString(String value)
Creates a new reactive string with the initial value.

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if the current value is empty.
no setter
isNotEmpty bool
Returns true if the current value is not empty.
no setter
length int
Returns the length of the current string value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<String>
Gets a stream of value changes.
no setterinherited
value String
Gets the current value.
getter/setter pairinherited

Methods

append(String text) → void
Appends text to the current value.
clear() → void
Clears the string (sets it to empty).
clearListeners() → void
Removes all listeners.
inherited
dispose() → void
Disposes of the reactive value and closes the stream.
inherited
listen(void callback(String text)) VoidCallback
Adds a listener that will be called whenever the value changes.
inherited
listenWithPrevious(void callback(String previous, String current)) VoidCallback
Adds a listener that will be called with both the previous and the new value on every change.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepend(String text) → void
Prepends text to the current value.
removeListener(void callback(String text)) → void
Removes a specific listener.
inherited
toString() String
Returns the current value as a string.
inherited
update(String updater(String current)) → void
Updates the value using a function and notifies listeners if changed.
inherited

Operators

operator ==(Object other) bool
Checks equality based on the current value.
inherited