AsyncSnapshot<T>.withError constructor
const
AsyncSnapshot<T>.withError (
- ConnectionState state,
- Object error, [
- StackTrace? stackTrace
Creates an AsyncSnapshot in the specified state with the specified error
and optional stackTrace.
Implementation
const AsyncSnapshot.withError(
ConnectionState state,
Object error, [
StackTrace? stackTrace,
]) : this._(state, null, error, stackTrace);