merge<K, R> method

VN<K> merge<K, R>(
  1. VN<R> other,
  2. K initialValue,
  3. void listener(
    1. T left,
    2. R right,
    3. void emitter(
      1. K value
      )
    )
)

Merges this VN with another VN into a derived VN.

  • other: The other VN to merge with.
  • initialValue: The initial value of the derived VN.
  • listener: A function that derives the value from the two VN instances.

Implementation

VN<K> merge<K, R>(
  VN<R> other,
  K initialValue,
  void Function(T left, R right, void Function(K value) emitter) listener,
) =>
    VN.merged(
      initialValue,
      left: this,
      right: other,
      listener: listener,
      changeType: changeType,
    );