ZapSnapshot<T>.withError constructor

ZapSnapshot<T>.withError(
  1. Object? _error,
  2. StackTrace? _trace
)

Implementation

ZapSnapshot.withError(this._error, this._trace)
  : _state = _SnapshotState.error,
    _data = null,
    isDone = false;