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