bool isConnected

Whether or not the underlying database connection is open.

Connections are automatically opened when a query is executed, so this property should not be used under normal operation. See getDatabaseConnection.

Source

bool get isConnected {
  if (_databaseConnection == null) {
    return false;
  }

  return !_databaseConnection.isClosed;
}