AsyncSnapshot<T>.withError constructor

const AsyncSnapshot<T>.withError(ConnectionState state, Object error)

Creates an AsyncSnapshot in the specified state and with the specified error.

Implementation

const AsyncSnapshot.withError(ConnectionState state, Object error) : this._(state, null, error);