ConnectionState.error constructor

const ConnectionState.error(
  1. Object error,
  2. StackTrace? stackTrace
)

The connection has failed with an error

Implementation

const factory ConnectionState.error(Object error, StackTrace? stackTrace) =
    ConnectionError;