AsyncSnapshot<T>.withError constructor

const AsyncSnapshot<T>.withError(
  1. ConnectionState state,
  2. 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);