append<T> method

T append<T>(
  1. NotifyData data,
  2. T builder()
)

Appends data to the provided data and executes the builder function.

Implementation

T append<T>(NotifyData data, T Function() builder) {
  _notifyData = data;
  final T result = builder();
  if (data.disposers.isEmpty && data.throwException) {
    throw ObxError();
  }
  _notifyData = null;
  return result;
}