SnapshotState<T>.withError constructor

const SnapshotState<T>.withError(
  1. ConnectionState state,
  2. Object error, [
  3. StackTrace stackTrace = StackTrace.empty
])

Implementation

const SnapshotState.withError(
  ConnectionState state,
  Object error, [
  StackTrace stackTrace = StackTrace.empty,
]) : this._(state, null, error, stackTrace);