AsyncSnapshot<T>.withError constructor

AsyncSnapshot<T>.withError({
  1. required ConnectionState connectionState,
  2. required Object error,
  3. StackTrace stackTrace = StackTrace.empty,
})

Implementation

factory AsyncSnapshot.withError({
  required final ConnectionState connectionState,
  required final Object error,
  final StackTrace stackTrace = StackTrace.empty,
}) =>
    AsyncSnapshot._(
      connectionState: connectionState,
      error: error,
      stackTrace: stackTrace,
    );