getMasterConnectionIfAvailable method

Connection? getMasterConnectionIfAvailable()

Implementation

Connection? getMasterConnectionIfAvailable() {
  final master = _masterConnection;
  if (master != null && master.connected) {
    return master;
  }
  return null;
}