isClosed property
bool
isClosed
Whether or not this connection is open or not.
This is true
when this instance is first created and after it has been closed or encountered an unrecoverable error.
If a connection has already been opened and this value is now true, the connection cannot be reopened and a instance
must be created.
Implementation
bool get isClosed => _connectionState is _PostgreSQLConnectionStateClosed;