isConnected property
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.
Implementation
bool get isConnected {
if (_databaseConnection == null) {
return false;
}
return !_databaseConnection!.isClosed;
}