AsyncSnapshot<T>.withError constructor
AsyncSnapshot<T>.withError ({
- required ConnectionState connectionState,
- required Object error,
- 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,
);