append<T> method

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

Implementation

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