getConnection function

ConnectionManager getConnection()

Implementation

ConnectionManager getConnection() {
  if (_connection == null) {
    throw 'Connection not established';
  }
  return _connection!;
}