inState method

AsyncSnapshot<T> inState (ConnectionState state)

Returns a snapshot like this one, but in the specified state.

The data and error fields persist unmodified, even if the new state is ConnectionState.none.

Implementation

AsyncSnapshot<T> inState(ConnectionState state) => AsyncSnapshot<T>._(state, data, error);