syncWith method

void syncWith(
  1. GgValue<T> other
)

Two way sync this value with another value

Implementation

// coverage:ignore-start
void syncWith(GgValue<T> other) {
  if (identical(other, this)) {
    return;
  }

  _sync ??= GgSync<T>._(firstValue: this);
  _sync!._addValue(other);
}