add method

void add(
  1. String value
)

Adds (concatenates) a string to the reactive string and updates it.

Example:

final name = swift('Hello');
name.add(' World'); // name.value is now 'Hello World'

Implementation

void add(String value) {
  this.value += value;
}